Commit 18c7834874 for ffmpeg
commit 18c783487474aff4752299428cec299d0c91c188
Author: James Almer <jamrial@gmail.com>
Date: Fri Nov 27 16:01:37 2026 -0300
tests/fate/mov: add a test for implicit item extent lenght handling
Signed-off-by: James Almer <jamrial@gmail.com>
diff --git a/tests/fate/mov.mak b/tests/fate/mov.mak
index 3660d321c2..e95a444d38 100644
--- a/tests/fate/mov.mak
+++ b/tests/fate/mov.mak
@@ -326,6 +326,12 @@ FATE_MOV_FFMPEG_FFPROBE_SAMPLES-$(call FRAMECRC, MOV, AV1, AV1_PARSER) \
fate-mov-avif-demux-still-image-alpha-grid: CMD = stream_demux mov $(TARGET_SAMPLES)/avif/gain_map_alpha_grid.avif "-c:v av1" "-c:v copy -map 0:g:0 -map 0:g:1" \
"-of compact -show_entries stream_group=index,id,nb_streams,type:stream_group_components:stream_group_disposition:stream_group_tags:stream_group_side_data:stream_group_stream=index,id:stream_group_stream_disposition:stream_group_stream_side_data_list"
+# avif demuxing - grid items whose single idat extent uses an implied length, plus an mdat image item whose extent also uses an implied length.
+FATE_MOV_FFMPEG_FFPROBE_SAMPLES-$(call FRAMECRC, MOV, AV1, AV1_PARSER) \
+ += fate-mov-avif-demux-implied-extent
+fate-mov-avif-demux-implied-extent: CMD = stream_demux mov $(TARGET_SAMPLES)/avif/implied_grid.avif "-c:v av1" "-c:v copy -map 0:24" \
+ "-of compact -show_entries stream_group=index,id,nb_streams,type:stream_group_components:stream_group_stream=index,id,width,height"
+
# avif item with extents across two mdat boxes, read through the root-parsing path.
FATE_MOV_FFMPEG_SAMPLES-$(call FRAMECRC, MOV, AV1, AV1_PARSER) \
+= fate-mov-avif-demux-item-two-mdats
diff --git a/tests/ref/fate/mov-avif-demux-implied-extent b/tests/ref/fate/mov-avif-demux-implied-extent
new file mode 100644
index 0000000000..f3050a66d9
--- /dev/null
+++ b/tests/ref/fate/mov-avif-demux-implied-extent
@@ -0,0 +1,36 @@
+#extradata 0: 4, 0x021c008d
+#tb 0: 1/1
+#media_type 0: video
+#codec_id 0: av1
+#dimensions 0: 64x80
+#sar 0: 0/1
+0, 0, 0, 1, 160, 0xa23648e3
+stream_group|index=0|id=0x1|nb_streams=12|type=Tile Grid|component_entry/tile_grid:nb_tiles=12|component_entry/tile_grid:coded_width=512|component_entry/tile_grid:coded_height=600|component_entry/tile_grid:horizontal_offset=0|component_entry/tile_grid:vertical_offset=0|component_entry/tile_grid:width=512|component_entry/tile_grid:height=600|subcomponent_entry/tile_offset:stream_index=0|subcomponent_entry/tile_offset:tile_horizontal_offset=0|subcomponent_entry/tile_offset:tile_vertical_offset=0|subcomponent_entry/tile_offset:stream_index=1|subcomponent_entry/tile_offset:tile_horizontal_offset=128|subcomponent_entry/tile_offset:tile_vertical_offset=0|subcomponent_entry/tile_offset:stream_index=2|subcomponent_entry/tile_offset:tile_horizontal_offset=256|subcomponent_entry/tile_offset:tile_vertical_offset=0|subcomponent_entry/tile_offset:stream_index=3|subcomponent_entry/tile_offset:tile_horizontal_offset=384|subcomponent_entry/tile_offset:tile_vertical_offset=0|subcomponent_entry/tile_offset:stream_index=4|subcomponent_entry/tile_offset:tile_horizontal_offset=0|subcomponent_entry/tile_offset:tile_vertical_offset=200|subcomponent_entry/tile_offset:stream_index=5|subcomponent_entry/tile_offset:tile_horizontal_offset=128|subcomponent_entry/tile_offset:tile_vertical_offset=200|subcomponent_entry/tile_offset:stream_index=6|subcomponent_entry/tile_offset:tile_horizontal_offset=256|subcomponent_entry/tile_offset:tile_vertical_offset=200|subcomponent_entry/tile_offset:stream_index=7|subcomponent_entry/tile_offset:tile_horizontal_offset=384|subcomponent_entry/tile_offset:tile_vertical_offset=200|subcomponent_entry/tile_offset:stream_index=8|subcomponent_entry/tile_offset:tile_horizontal_offset=0|subcomponent_entry/tile_offset:tile_vertical_offset=400|subcomponent_entry/tile_offset:stream_index=9|subcomponent_entry/tile_offset:tile_horizontal_offset=128|subcomponent_entry/tile_offset:tile_vertical_offset=400|subcomponent_entry/tile_offset:stream_index=10|subcomponent_entry/tile_offset:tile_horizontal_offset=256|subcomponent_entry/tile_offset:tile_vertical_offset=400|subcomponent_entry/tile_offset:stream_index=11|subcomponent_entry/tile_offset:tile_horizontal_offset=384|subcomponent_entry/tile_offset:tile_vertical_offset=400
+stream|index=0|width=128|height=200|id=0x2
+stream|index=1|width=128|height=200|id=0x3
+stream|index=2|width=128|height=200|id=0x4
+stream|index=3|width=128|height=200|id=0x5
+stream|index=4|width=128|height=200|id=0x6
+stream|index=5|width=128|height=200|id=0x7
+stream|index=6|width=128|height=200|id=0x8
+stream|index=7|width=128|height=200|id=0x9
+stream|index=8|width=128|height=200|id=0xa
+stream|index=9|width=128|height=200|id=0xb
+stream|index=10|width=128|height=200|id=0xc
+stream|index=11|width=128|height=200|id=0xd
+stream_group|index=1|id=0xe|nb_streams=12|type=Tile Grid|component_entry/tile_grid:nb_tiles=12|component_entry/tile_grid:coded_width=512|component_entry/tile_grid:coded_height=600|component_entry/tile_grid:horizontal_offset=0|component_entry/tile_grid:vertical_offset=0|component_entry/tile_grid:width=512|component_entry/tile_grid:height=600|subcomponent_entry/tile_offset:stream_index=0|subcomponent_entry/tile_offset:tile_horizontal_offset=0|subcomponent_entry/tile_offset:tile_vertical_offset=0|subcomponent_entry/tile_offset:stream_index=1|subcomponent_entry/tile_offset:tile_horizontal_offset=128|subcomponent_entry/tile_offset:tile_vertical_offset=0|subcomponent_entry/tile_offset:stream_index=2|subcomponent_entry/tile_offset:tile_horizontal_offset=256|subcomponent_entry/tile_offset:tile_vertical_offset=0|subcomponent_entry/tile_offset:stream_index=3|subcomponent_entry/tile_offset:tile_horizontal_offset=384|subcomponent_entry/tile_offset:tile_vertical_offset=0|subcomponent_entry/tile_offset:stream_index=4|subcomponent_entry/tile_offset:tile_horizontal_offset=0|subcomponent_entry/tile_offset:tile_vertical_offset=200|subcomponent_entry/tile_offset:stream_index=5|subcomponent_entry/tile_offset:tile_horizontal_offset=128|subcomponent_entry/tile_offset:tile_vertical_offset=200|subcomponent_entry/tile_offset:stream_index=6|subcomponent_entry/tile_offset:tile_horizontal_offset=256|subcomponent_entry/tile_offset:tile_vertical_offset=200|subcomponent_entry/tile_offset:stream_index=7|subcomponent_entry/tile_offset:tile_horizontal_offset=384|subcomponent_entry/tile_offset:tile_vertical_offset=200|subcomponent_entry/tile_offset:stream_index=8|subcomponent_entry/tile_offset:tile_horizontal_offset=0|subcomponent_entry/tile_offset:tile_vertical_offset=400|subcomponent_entry/tile_offset:stream_index=9|subcomponent_entry/tile_offset:tile_horizontal_offset=128|subcomponent_entry/tile_offset:tile_vertical_offset=400|subcomponent_entry/tile_offset:stream_index=10|subcomponent_entry/tile_offset:tile_horizontal_offset=256|subcomponent_entry/tile_offset:tile_vertical_offset=400|subcomponent_entry/tile_offset:stream_index=11|subcomponent_entry/tile_offset:tile_horizontal_offset=384|subcomponent_entry/tile_offset:tile_vertical_offset=400
+stream|index=12|width=128|height=200|id=0xf
+stream|index=13|width=128|height=200|id=0x10
+stream|index=14|width=128|height=200|id=0x11
+stream|index=15|width=128|height=200|id=0x12
+stream|index=16|width=128|height=200|id=0x13
+stream|index=17|width=128|height=200|id=0x14
+stream|index=18|width=128|height=200|id=0x15
+stream|index=19|width=128|height=200|id=0x16
+stream|index=20|width=128|height=200|id=0x17
+stream|index=21|width=128|height=200|id=0x18
+stream|index=22|width=128|height=200|id=0x19
+stream|index=23|width=128|height=200|id=0x1a
+stream_group|index=2|id=0xe|nb_streams=2|type=Alpha (Split color and alpha channels)
+stream_group|index=0|id=0x1|nb_streams=12|type=Tile Grid
+stream_group|index=1|id=0xe|nb_streams=12|type=Tile Grid