[FFmpeg-devel] [PATCH] Fix DCA regression test to work across architectures.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Apr 7 13:55:54 CEST 2012


Only the decoding step is not bit-exact, so avoid checksum for that.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
 tests/codec-regression.sh |    2 +-
 tests/ref/acodec/dca      |    1 -
 tests/regression-funcs.sh |    5 +++++
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh
index 71ec608..7421471 100755
--- a/tests/codec-regression.sh
+++ b/tests/codec-regression.sh
@@ -442,7 +442,7 @@ fi
 
 if [ -n "$do_dca" ] ; then
 do_audio_encoding dca.dts "-strict -2 -acodec dca"
-do_audio_decoding
+do_audio_decoding_nomd5
 $tiny_psnr $pcm_dst $pcm_ref 2 1920
 fi
 
diff --git a/tests/ref/acodec/dca b/tests/ref/acodec/dca
index e420db9..f4f4a19 100644
--- a/tests/ref/acodec/dca
+++ b/tests/ref/acodec/dca
@@ -1,5 +1,4 @@
 66bd0e602be7fb97dc19151554c0ee29 *./tests/data/acodec/dca.dts
 1097124 ./tests/data/acodec/dca.dts
-e1842f7616c65612b10b23245645ac40 *./tests/data/dca.acodec.out.wav
 stddev: 8944.44 PSNR: 17.30 MAXDIFF:56478 bytes:  1060864/  1058400
 stddev: 2424.93 PSNR: 28.64 MAXDIFF:13723 bytes:  1058944/  1058400
diff --git a/tests/regression-funcs.sh b/tests/regression-funcs.sh
index e814a15..51e7ac4 100755
--- a/tests/regression-funcs.sh
+++ b/tests/regression-funcs.sh
@@ -124,3 +124,8 @@ do_audio_decoding()
 {
     do_avconv $pcm_dst $DEC_OPTS -i $target_path/$file -sample_fmt s16 -f wav $1
 }
+
+do_audio_decoding_nomd5()
+{
+    do_avconv_nomd5 $pcm_dst $DEC_OPTS -i $target_path/$file -sample_fmt s16 -f wav $1
+}
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list