summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-07 22:36:45 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-10 01:38:07 +0200
commita5ab4be081aee22e675d0e78aa9ca0d08f4a5d6f (patch)
treefd9820188024fa4aa5991b7983b97b9df82e8df4 /tests
parent06b98e396adc467a5164a03d71dd71508a2d8881 (diff)
tests/fate-run: Allow to set input options for encoding pass
This will be useful in the next commit. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/fate-run.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 4008bcbc16..61cc59acc0 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -247,12 +247,13 @@ transcode(){
ffprobe_opts=$6
additional_input=$7
final_decode=$8
+ enc_opt_in=$9
test -z "$additional_input" || additional_input="$DEC_OPTS $additional_input"
encfile="${outdir}/${test}.${enc_fmt}"
test $keep -ge 1 || cleanfiles="$cleanfiles $encfile"
tsrcfile=$(target_path $srcfile)
tencfile=$(target_path $encfile)
- ffmpeg -f $src_fmt $DEC_OPTS -i $tsrcfile $additional_input \
+ ffmpeg -f $src_fmt $DEC_OPTS $enc_opt_in -i $tsrcfile $additional_input \
$ENC_OPTS $enc_opt $FLAGS -f $enc_fmt -y $tencfile || return
do_md5sum $encfile
echo $(wc -c $encfile)