diff mbox series

[FFmpeg-devel,3/4] tests/fate-run: Allow to set dec opts for generated file in transcode

Message ID AS8PR01MB794494588FFE48001ADB4C9F8FC09@AS8PR01MB7944.eurprd01.prod.exchangelabs.com
State Accepted
Commit c9e7050a3e761fa3c2667be8ba1eb968e7e302cb
Headers show
Series [FFmpeg-devel,1/2] fate/lavf-audio: Disable CRC for lavf-peak_only.wav test | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt May 3, 2022, 1:59 p.m. UTC
This can be necessary to e.g. force a fixed-point audio codec.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 tests/fate-run.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 4f8988b964..2606fcb917 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -230,9 +230,10 @@  transcode(){
     srcfile=$2
     enc_fmt=$3
     enc_opt=$4
-    final_decode=$5
+    final_encode=$5
     ffprobe_opts=$7
     additional_input=$8
+    final_decode=$9
     test -z "$additional_input" || additional_input="$DEC_OPTS $additional_input"
     encfile="${outdir}/${test}.${enc_fmt}"
     test "$6" = -keep || cleanfiles="$cleanfiles $encfile"
@@ -242,7 +243,7 @@  transcode(){
            $ENC_OPTS $enc_opt $FLAGS -f $enc_fmt -y $tencfile || return
     do_md5sum $encfile
     echo $(wc -c $encfile)
-    ffmpeg $DEC_OPTS -i $tencfile $ENC_OPTS $FLAGS $final_decode \
+    ffmpeg $DEC_OPTS $final_decode -i $tencfile $ENC_OPTS $FLAGS $final_encode \
         -f framecrc - || return
     test -z $ffprobe_opts || \
         run ffprobe${PROGSUF}${EXECSUF} -bitexact $ffprobe_opts $tencfile || return