From 4f5c72e85744304cc41ba430a8dfd005d18a06b3 Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Fri, 8 Aug 2008 23:31:43 +0000 Subject: PCM regression tests. Originally committed as revision 14671 to svn://svn.ffmpeg.org/ffmpeg/trunk --- tests/regression.sh | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'tests/regression.sh') diff --git a/tests/regression.sh b/tests/regression.sh index ea45557761..8b2732f66f 100755 --- a/tests/regression.sh +++ b/tests/regression.sh @@ -126,7 +126,7 @@ do_audio_encoding() do_audio_decoding() { - do_ffmpeg $pcm_dst -i $file -f wav $pcm_dst + do_ffmpeg $pcm_dst -i $file -sample_fmt s16 -f wav $pcm_dst } do_libav() @@ -437,6 +437,33 @@ fi #do_audio_decoding #fi +do_audio_enc_dec() { + do_audio_encoding $3.$1 "" "$4 -sample_fmt $2 -acodec $3" + do_audio_decoding +} + +if [ -n "$do_pcm" ] ; then +do_audio_enc_dec wav s16 pcm_alaw +do_audio_enc_dec wav s16 pcm_mulaw +do_audio_enc_dec mov s16 pcm_s8 +do_audio_enc_dec wav s16 pcm_u8 +do_audio_enc_dec mov s16 pcm_s16be +do_audio_enc_dec wav s16 pcm_s16le +do_audio_enc_dec mkv s16 pcm_u16be +do_audio_enc_dec mkv s16 pcm_u16le +do_audio_enc_dec mov s16 pcm_s24be +do_audio_enc_dec wav s16 pcm_s24le +#do_audio_enc_dec ??? s16 pcm_u24be #no compatible muxer or demuxer +#do_audio_enc_dec ??? s16 pcm_u24le #no compatible muxer or demuxer +do_audio_enc_dec mov s16 pcm_s32be +do_audio_enc_dec wav s16 pcm_s32le +#do_audio_enc_dec ??? s16 pcm_u32be #no compatible muxer or demuxer +#do_audio_enc_dec ??? s16 pcm_u32le #no compatible muxer or demuxer +do_audio_enc_dec au flt pcm_f32be +do_audio_enc_dec wav s16 pcm_zork +do_audio_enc_dec 302 s16 pcm_s24daud "-ac 6 -ar 96000" +fi + # libavformat testing if [ -n "$do_avi" ] ; then -- cgit v1.2.1