Commit 8d18bc55 authored by Anton Khirnov's avatar Anton Khirnov

fate-run: make avconv() properly deal with multiple inputs.

parent 083d0f6b
......@@ -75,7 +75,13 @@ probefmt(){
}
avconv(){
run avconv -nostats -threads $threads -thread_type $thread_type -cpuflags $cpuflags "$@"
dec_opts="-threads $threads -thread_type $thread_type"
avconv_args="-nostats -cpuflags $cpuflags"
for arg in $@; do
[ ${arg} = -i ] && avconv_args="${avconv_args} ${dec_opts}"
avconv_args="${avconv_args} ${arg}"
done
run avconv ${avconv_args}
}
framecrc(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment