Browse Source

Fix DCA regression test to work across architectures.

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

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
tags/n0.11
Reimar Döffinger 14 years ago
parent
commit
cb25a186eb
3 changed files with 7 additions and 2 deletions
  1. +2
    -1
      tests/codec-regression.sh
  2. +0
    -1
      tests/ref/acodec/dca
  3. +5
    -0
      tests/regression-funcs.sh

+ 2
- 1
tests/codec-regression.sh View File

@@ -441,7 +441,8 @@ fi

if [ -n "$do_dca" ] ; then
do_audio_encoding dca.dts "-strict -2 -channel_layout 3 -acodec dca"
do_audio_decoding
# decoding is not bit-exact, so skip md5 of decoded file
do_audio_decoding_nomd5
$tiny_psnr $pcm_dst $pcm_ref 2 1920
fi



+ 0
- 1
tests/ref/acodec/dca View File

@@ -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

+ 5
- 0
tests/regression-funcs.sh View File

@@ -122,3 +122,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
}

Loading…
Cancel
Save