fate/ogg-vorbis: add a test for a chained stream with a large comment

Remux two short streams from an existing sample, the second one with a
70000-byte comment header, and demux their concatenation.

Signed-off-by: Martin Mirchev <mmirchev@comp.nus.edu.sg>
This commit is contained in:
Martin Mirchev authored and Romain Beauxis committed 2026-10-28 01:57:05 +00:00
1 parent 94110fbc39
commit 0718c6e195
2 files changed
+71

No files matched your search

+13
View File
@@ -7,6 +7,19 @@ fate-ogg-vorbis-copy-chained-meta: $(APITESTSDIR)/api-dump-stream-meta-test$(EXE
fate-ogg-vorbis-copy-chained-meta: REF = $(SRC_PATH)/tests/ref/fate/ogg-vorbis-chained-meta.txt
fate-ogg-vorbis-copy-chained-meta: CMD = run_with_temp "$(FFMPEG) -nostdin -hide_banner -loglevel quiet -i $(TARGET_SAMPLES)/ogg-vorbis/chained-meta.ogg -c copy -f ogg -y" "$(APITESTSDIR)/api-dump-stream-meta-test$(EXESUF)" ogg
# Chain two streams cut from the same sample, the second one with a comment
# header larger than 64 KiB (as with embedded cover art).
FATE_OGG_COPY_VORBIS-$(call FRAMECRC, OGG FFMETADATA, VORBIS, OGG_MUXER CONCAT_PROTOCOL) += fate-ogg-vorbis-chained-large-comment
fate-ogg-vorbis-chained-large-comment: CMD = \
cleanfiles="$${cleanfiles} $${outfile}.txt $${outfile}.1.ogg $${outfile}.2.ogg"; \
printf ";FFMETADATA1\ncomment=%070000d\n" 0 > "$${outfile}.txt" && \
ffmpeg -i $(TARGET_SAMPLES)/vorbis/moog_small.ogg -c copy -t 0.5 -fflags +bitexact \
-y "$$(target_path "$${outfile}.1.ogg")" && \
ffmpeg -i $(TARGET_SAMPLES)/vorbis/moog_small.ogg -i "$$(target_path "$${outfile}.txt")" \
-map 0 -map_metadata 1 -c copy -t 0.5 -fflags +bitexact -serial_offset 1 \
-y "$$(target_path "$${outfile}.2.ogg")" && \
framecrc -i "concat:$$(target_path "$${outfile}.1.ogg")|$$(target_path "$${outfile}.2.ogg")" -c copy
FATE_OGG_VORBIS_PROBE-$(call DEMDEC, OGG, VORBIS) += fate-ogg-vorbis-initial-padding-chained
fate-ogg-vorbis-initial-padding-chained: CMD = ffprobe_demux -of default -show_entries stream=codec_name,initial_padding $(TARGET_SAMPLES)/ogg-vorbis/chained-meta.ogg
@@ -0,0 +1,58 @@
#extradata 0: 12456, 0xa1161932
#tb 0: 1/44100
#media_type 0: audio
#codec_id 0: vorbis
#sample_rate 0: 44100
#channel_layout_name 0: stereo
0, -128, -128, 128, 3, 0x00000000, S=1, Strings Metadata, 106, 0xe088249e
0, 0, 0, 576, 4, 0x0028000a
0, 576, 576, 1024, 4, 0x0038000e
0, 1600, 1600, 1024, 4, 0x0038000e
0, 2624, 2624, 1024, 4, 0x00180006
0, 3648, 3648, 576, 3, 0x00000000
0, 4224, 4224, 128, 54, 0x014c1a96
0, 4352, 4352, 128, 55, 0x2f911b84
0, 4480, 4480, 576, 420, 0xf6dbdbbc
0, 5056, 5056, 1024, 387, 0x0c56c7ba
0, 6080, 6080, 1024, 393, 0x6327c817
0, 7104, 7104, 1024, 358, 0x578bb0b5
0, 8128, 8128, 1024, 301, 0x3f658f2f
0, 9152, 9152, 1024, 303, 0xe1a2955f
0, 10176, 10176, 1024, 311, 0x4f829c54
0, 11200, 11200, 1024, 308, 0x1d1a9ae7
0, 12224, 12224, 1024, 282, 0x10428728
0, 13248, 13248, 1024, 274, 0xd201846b
0, 14272, 14272, 1024, 297, 0x688a8dee
0, 15296, 15296, 1024, 279, 0x01fc85c1
0, 16320, 16320, 1024, 299, 0xeb658ff2
0, 17344, 17344, 1024, 286, 0x01569307
0, 18368, 18368, 1024, 307, 0x331a8a6a
0, 19392, 19392, 1024, 293, 0x59eb908a
0, 20416, 20416, 1024, 294, 0x11dc9474
0, 21440, 21440, 1024, 300, 0x7c9d9254, S=1, Skip Samples, 10, 0x03000080
0, 22464, 22464, 128, 3, 0x00000000, S=2, Strings Metadata, 70115, 0xf8df6f8e, New Extradata, 82871, 0x33479e75
0, 22592, 22592, 576, 4, 0x0028000a
0, 23168, 23168, 1024, 4, 0x0038000e
0, 24192, 24192, 1024, 4, 0x0038000e
0, 25216, 25216, 1024, 4, 0x00180006
0, 26240, 26240, 576, 3, 0x00000000
0, 26816, 26816, 128, 54, 0x014c1a96
0, 26944, 26944, 128, 55, 0x2f911b84
0, 27072, 27072, 576, 420, 0xf6dbdbbc
0, 27648, 27648, 1024, 387, 0x0c56c7ba
0, 28672, 28672, 1024, 393, 0x6327c817
0, 29696, 29696, 1024, 358, 0x578bb0b5
0, 30720, 30720, 1024, 301, 0x3f658f2f
0, 31744, 31744, 1024, 303, 0xe1a2955f
0, 32768, 32768, 1024, 311, 0x4f829c54
0, 33792, 33792, 1024, 308, 0x1d1a9ae7
0, 34816, 34816, 1024, 282, 0x10428728
0, 35840, 35840, 1024, 274, 0xd201846b
0, 36864, 36864, 1024, 297, 0x688a8dee
0, 37888, 37888, 1024, 279, 0x01fc85c1
0, 38912, 38912, 1024, 299, 0xeb658ff2
0, 39936, 39936, 1024, 286, 0x01569307
0, 40960, 40960, 1024, 307, 0x331a8a6a
0, 41984, 41984, 1024, 293, 0x59eb908a
0, 43008, 43008, 1024, 294, 0x11dc9474
0, 44032, 44032, 1024, 300, 0x7c9d9254, S=1, Skip Samples, 10, 0x03000080