FATE: specify the input format when decoding in enc_dec_pcm()
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 17 Apr 2012 01:06:00 +0000 (21:06 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 19 Apr 2012 02:26:49 +0000 (22:26 -0400)
The output format is not always the same as the file extension,
which is sometimes required for correct probing. We can avoid
probing by specifying the format since it is already known.

tests/fate-run.sh

index b19f0ae..39db0e8 100755 (executable)
@@ -91,7 +91,7 @@ enc_dec_pcm(){
     encfile="${outdir}/${test}.${out_fmt}"
     cleanfiles=$encfile
     avconv -i $ref "$@" -f $out_fmt -y ${target_path}/${encfile} || return
-    avconv -i ${target_path}/${encfile} -c:a pcm_${pcm_fmt} -f wav -
+    avconv -f $out_fmt -i ${target_path}/${encfile} -c:a pcm_${pcm_fmt} -f wav -
 }
 
 regtest(){