Sfoglia il codice sorgente

#1417 Video duration isn't set

Alex Trofimov 8 anni fa
parent
commit
7cfe3dd596
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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`;
 
         $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;
 
         $aDuration = array_slice($aMatch, 1, -1);