Add ALAC encoding and decoding regression tests.
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 6 Oct 2009 22:47:33 +0000 (22:47 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Tue, 6 Oct 2009 22:47:33 +0000 (22:47 +0000)
Originally committed as revision 20188 to svn://svn.ffmpeg.org/ffmpeg/trunk

Makefile
tests/codec-regression.sh
tests/rotozoom.regression.ref
tests/vsynth.regression.ref

index ed81397..9cd9ef2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -194,6 +194,7 @@ CODEC_TESTS = $(addprefix regtest-,             \
         adpcm_ms                                \
         adpcm_yam                               \
         adpcm_swf                               \
+        alac                                    \
         flac                                    \
         wma                                     \
         pcm                                     \
index 65273aa..49f4ce3 100755 (executable)
@@ -431,6 +431,11 @@ do_audio_encoding adpcm_swf.flv "-ar 44100" "-acodec adpcm_swf"
 do_audio_decoding
 fi
 
+if [ -n "$do_alac" ] ; then
+do_audio_encoding alac.m4a "-ar 44100" "-acodec alac -compression_level 1"
+do_audio_decoding
+fi
+
 if [ -n "$do_flac" ] ; then
 do_audio_encoding flac.flac "-ar 44100" "-acodec flac -compression_level 2"
 do_audio_decoding
index 665de75..a6dd7da 100644 (file)
@@ -213,6 +213,10 @@ stddev: 1247.64 PSNR: 34.40 bytes:  1065004/  1058444
 269166 ./tests/data/a-adpcm_swf.flv
 628089745a7059ae4055c2515b6d668b *./tests/data/adpcm_swf.rotozoom.out.wav
 stddev:  933.65 PSNR: 36.92 bytes:  1065004/  1058444
+c68f649777ab8e7c9a0f1f221451d3ad *./tests/data/a-alac.m4a
+389386 ./tests/data/a-alac.m4a
+95e54b261530a1bcf6de6fe3b21dc5f6 *./tests/data/alac.rotozoom.out.wav
+stddev:    0.00 PSNR:999.99 bytes:  1058444/  1058444
 7781a016edfc242a39e4d65af02d861a *./tests/data/a-flac.flac
 353368 ./tests/data/a-flac.flac
 95e54b261530a1bcf6de6fe3b21dc5f6 *./tests/data/flac.rotozoom.out.wav
index 5df7b0d..971abb4 100644 (file)
@@ -213,6 +213,10 @@ stddev: 1247.64 PSNR: 34.40 bytes:  1065004/  1058444
 269166 ./tests/data/a-adpcm_swf.flv
 628089745a7059ae4055c2515b6d668b *./tests/data/adpcm_swf.vsynth.out.wav
 stddev:  933.65 PSNR: 36.92 bytes:  1065004/  1058444
+c68f649777ab8e7c9a0f1f221451d3ad *./tests/data/a-alac.m4a
+389386 ./tests/data/a-alac.m4a
+95e54b261530a1bcf6de6fe3b21dc5f6 *./tests/data/alac.vsynth.out.wav
+stddev:    0.00 PSNR:999.99 bytes:  1058444/  1058444
 7781a016edfc242a39e4d65af02d861a *./tests/data/a-flac.flac
 353368 ./tests/data/a-flac.flac
 95e54b261530a1bcf6de6fe3b21dc5f6 *./tests/data/flac.vsynth.out.wav