This allows for testing floating-point audio encoders across different platforms where exact comparisons are unreliable due to float rounding differences. --- tests/fate-run.sh | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 055cf25..2a9f0f8 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -87,6 +87,18 @@ pcm(){ avconv "$@" -vn -f s16le - } +enc_dec_pcm(){ + out_fmt=$1 + in_ch=$2 + in_sr=$3 + in_fmt=$4 + shift 4 + encfile="${outdir}/${test}.${out_fmt}" + cleanfiles=$encfile + avconv -channels $in_ch -sample_rate $in_sr -f $in_fmt -i $ref "$@" -f $out_fmt -y $encfile || return + avconv -i $encfile -vn -f $in_fmt - +} + regtest(){ t="${test#$2-}" ref=${base}/ref/$2/$t -- 1.7.1 _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel