Skip to content

Commit 9ca8966

Browse files
Gracefully Fix
1 parent ffb7cbf commit 9ca8966

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

FfmpegVideoTranscoding.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,11 @@ private static function separateAudioVideoTranscodingRequired($source, $options)
300300
}
301301

302302
public static function transcodeGracefully($source, $options) {
303-
if (self::separateAudioVideoTranscodingRequired($source, $options))
304-
return self::transcodeAudioVideoSeparately($source, $options);
305303
try {
306-
return self::transcode($source, $options);
304+
if (self::separateAudioVideoTranscodingRequired($source, $options))
305+
return self::transcodeAudioVideoSeparately($source, $options);
306+
else
307+
return self::transcode($source, $options);
307308
} catch (Exception $e) {
308309
return self::transcodeAudioVideoSeparately2($source, $options);
309310
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name" : "ziggeo/php-ffmpeg-toolkit",
33
"description" : "A php library for running ffmpeg.",
4-
"version" : "0.0.11",
4+
"version" : "0.0.12",
55
"license" : "Apache-2.0",
66
"require" : {
77
"php" : ">=5.3.0"

0 commit comments

Comments
 (0)