[FFmpeg-devel] [PATCHv2 2/2] tests/fate/demux: IFF test case

Peter Ross pross at xvid.org
Wed Dec 11 00:31:07 EET 2024


---
Test file:

https://pross.sdf.org/sandpit/Hammer2.sndanim

 tests/fate/demux.mak     |  3 +++
 tests/ref/fate/iff-demux | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 tests/ref/fate/iff-demux

diff --git a/tests/fate/demux.mak b/tests/fate/demux.mak
index e0d1fccc8f..3e6813f9da 100644
--- a/tests/fate/demux.mak
+++ b/tests/fate/demux.mak
@@ -54,6 +54,9 @@ fate-flv-demux: CMD = ffprobe_demux $(TARGET_SAMPLES)/flv/Enigma_Principles_of_L
 FATE_SAMPLES_DEMUX-$(CONFIG_GIF_DEMUXER) += fate-gif-demux
 fate-gif-demux: CMD = framecrc -i $(TARGET_SAMPLES)/gif/Newtons_cradle_animation_book_2.gif -c:v copy
 
+FATE_SAMPLES_DEMUX-$(CONFIG_IFF_DEMUXER) += fate-iff-demux
+fate-iff-demux: CMD = framecrc -i $(TARGET_SAMPLES)/iff/Hammer2.sndanim -c:v copy -c:a copy
+
 FATE_SAMPLES_DEMUX-$(call ALLYES, IV8_DEMUXER MPEG4VIDEO_PARSER) += fate-iv8-demux
 fate-iv8-demux: CMD = framecrc -i $(TARGET_SAMPLES)/iv8/zzz-partial.mpg -c:v copy
 
diff --git a/tests/ref/fate/iff-demux b/tests/ref/fate/iff-demux
new file mode 100644
index 0000000000..43e711856c
--- /dev/null
+++ b/tests/ref/fate/iff-demux
@@ -0,0 +1,32 @@
+#extradata 0:       65, 0xad7f0b54
+#tb 0: 1/60
+#media_type 0: video
+#codec_id 0: iff_ilbm
+#dimensions 0: 320x200
+#sar 0: 0/1
+#tb 1: 1/14977
+#media_type 1: audio
+#codec_id 1: pcm_s8_planar
+#sample_rate 1: 14977
+#channel_layout_name 1: stereo
+0,          0,          0,       12,    11124, 0x2446cd13
+1,          0,          0,     1497,     2994, 0x00000000
+1,       1497,       1497,     1497,     2994, 0x00000000
+1,       2994,       2994,     1497,     2994, 0x43c16baa
+0,         12,         12,        6,     4608, 0x3e196585, F=0x0
+1,       4491,       4491,     1497,     2994, 0x47eefb28
+0,         18,         18,        6,     4496, 0xe02350d6, F=0x0
+1,       5988,       5988,     1497,     2994, 0x0f11a833
+0,         24,         24,        6,     4472, 0xd40dc2e6, F=0x0
+1,       7485,       7485,     1497,     2994, 0x44067560
+0,         30,         30,        6,     4574, 0x69678743, F=0x0
+1,       8982,       8982,     1497,     2994, 0xd690cbf5
+0,         36,         36,        6,     4548, 0xd8970f13, F=0x0
+1,      10479,      10479,     1497,     2994, 0x00000000
+0,         42,         42,        6,     4670, 0xfc35e0f3, F=0x0
+1,      11976,      11976,     2995,     5990, 0x00000000
+0,         48,         48,        6,     4388, 0xdee7fa79, F=0x0
+0,         54,         54,        6,     4444, 0x65ee3fa1, F=0x0
+1,      14971,      14971,     1497,     2994, 0x00000000
+0,         60,         60,       12,     7344, 0xb76b3452, F=0x0
+0,         72,         72,        6,     1586, 0xbee30464, F=0x0
-- 
2.45.2

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241211/e4fc4987/attachment.sig>


More information about the ffmpeg-devel mailing list