]> git.sesse.net Git - ffmpeg/blobdiff - tests/fate-run.sh
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / tests / fate-run.sh
index 39981c13327e90854e3dae1d24fd4620cb9575ab..ccd04a310871853ddb2332a169d5b59342f27bfa 100755 (executable)
@@ -75,7 +75,13 @@ probefmt(){
 }
 
 ffmpeg(){
-    run ffmpeg -nostats -threads $threads -thread_type $thread_type -cpuflags $cpuflags "$@"
+    dec_opts="-threads $threads -thread_type $thread_type"
+    ffmpeg_args="-nostats -cpuflags $cpuflags"
+    for arg in $@; do
+        [ ${arg} = -i ] && ffmpeg_args="${ffmpeg_args} ${dec_opts}"
+        ffmpeg_args="${ffmpeg_args} ${arg}"
+    done
+    run ffmpeg ${ffmpeg_args}
 }
 
 framecrc(){