[FFmpeg-devel] [PATCH 2/2] fate: add tests for unknown channel layouts.

Nicolas George nicolas.george at normalesup.org
Mon Apr 1 15:53:44 CEST 2013


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 tests/fate/ffmpeg.mak             |   11 +++++++++++
 tests/ref/fate/unknown_layout-ac3 |    1 +
 tests/ref/fate/unknown_layout-pcm |    1 +
 3 files changed, 13 insertions(+)
 create mode 100644 tests/ref/fate/unknown_layout-ac3
 create mode 100644 tests/ref/fate/unknown_layout-pcm


The first test is for when the layout stays unknown until the end.

The second test is for when the layout is forced by the encoder.


diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
index b96bfb3..21cdd5f 100644
--- a/tests/fate/ffmpeg.mak
+++ b/tests/fate/ffmpeg.mak
@@ -35,3 +35,14 @@ fate-sub2video: CMD = framecrc \
   -ss 132 -i $(SAMPLES)/sub/vobsub.idx \
   -filter_complex "sws_flags=+accurate_rnd+bitexact;[0:0]scale=720:480[v];[v][1:0]overlay[v2]" \
   -map "[v2]" -c:v rawvideo -map 1:s -c:s dvdsub
+
+FATE_FFMPEG-$(call ALLYES, PCM_S16LE_DEMUXER PCM_S16LE_MUXER PCM_S16LE_DECODER PCM_S16LE_ENCODER) += fate-unknown_layout-pcm
+fate-unknown_layout-pcm: $(AREF)
+fate-unknown_layout-pcm: CMD = md5 \
+  -guess_layout_max 0 -f s16le -ac 1 -ar 44100 -i $(AREF) -f s16le
+
+FATE_FFMPEG-$(call ALLYES, PCM_S16LE_DEMUXER AC3_MUXER PCM_S16LE_DECODER AC3_FIXED_ENCODER) += fate-unknown_layout-ac3
+fate-unknown_layout-ac3: $(AREF)
+fate-unknown_layout-ac3: CMD = md5 \
+  -guess_layout_max 0 -f s16le -ac 1 -ar 44100 -i $(AREF) \
+  -f ac3 -flags +bitexact -c ac3_fixed
diff --git a/tests/ref/fate/unknown_layout-ac3 b/tests/ref/fate/unknown_layout-ac3
new file mode 100644
index 0000000..d332efc
--- /dev/null
+++ b/tests/ref/fate/unknown_layout-ac3
@@ -0,0 +1 @@
+bbb7550d6d93973c10f4ee13c87cf799
diff --git a/tests/ref/fate/unknown_layout-pcm b/tests/ref/fate/unknown_layout-pcm
new file mode 100644
index 0000000..73c6a2d
--- /dev/null
+++ b/tests/ref/fate/unknown_layout-pcm
@@ -0,0 +1 @@
+4dada0795adf50f7a0e60861658f86ea
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list