Browse Source

#1417 Video duration isn't set

Alex Trofimov 8 years ago
parent
commit
7cfe3dd596
1 changed files with 1 additions and 1 deletions
  1. 1 1
      inc/classes/BxDolTranscoderVideo.php

+ 1 - 1
inc/classes/BxDolTranscoderVideo.php

@@ -83,7 +83,7 @@ class BxDolTranscoderVideo extends BxDolTranscoder implements iBxDolFactoryObjec
         $sResult = `$sCommand`;
         $sResult = `$sCommand`;
 
 
         $aMatch = array();
         $aMatch = array();
-        if(!preg_match("/duration:\s([0-9]{2}):([0-9]{2}):([0-9]{2})\.([0-9]{2})/i", $sResult, $aMatch))
+        if(!preg_match("/[Dd]uration:\s([0-9]{2}):([0-9]{2}):([0-9]{2})\.([0-9]{2})/i", $sResult, $aMatch))
             return false;
             return false;
 
 
         $aDuration = array_slice($aMatch, 1, -1);
         $aDuration = array_slice($aMatch, 1, -1);