diff --git a/libraries/phpvideotoolkit/phpvideotoolkit.php5.php b/libraries/phpvideotoolkit/phpvideotoolkit.php5.php
index 56d383a..d3dcc47 100644
--- a/libraries/phpvideotoolkit/phpvideotoolkit.php5.php
+++ b/libraries/phpvideotoolkit/phpvideotoolkit.php5.php
@@ -2602,6 +2602,9 @@ class PHPVideoToolkit {
    * @return boolean True if the codec can be encoded by ffmpeg, otherwise false.
    */
   public static function canCodecBeEncoded($type, $codec) {
+    if (isset($this)){
+      return $this->validateCodec($codec, $type, 'encode');
+    }
     return self::validateCodec($codec, $type, 'encode');
   }
 
@@ -2612,6 +2615,9 @@ class PHPVideoToolkit {
    * @return boolean True if the codec can be decoded by ffmpeg, otherwise false.
    */
   public static function canCodecBeDecoded($type, $codec) {
+    if (isset($this)){
+      return $this->validateCodec($codec, $type, 'decode');
+    }
     return self::validateCodec($codec, $type, 'decode');
   }
 
