From 97e1480c8cb8a7e94f89589b58d3246e578a976b Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 4 Mar 2024 18:44:12 -0300 Subject: [PATCH] avformat/mov: set stream index field in tile grids It was forgotten for grid type derived images. Signed-off-by: James Almer --- libavformat/mov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index f0e98f38b5..023892611a 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -9315,6 +9315,7 @@ static int read_image_grid(AVFormatContext *s, const HEIFGrid *grid, if (i == tile_grid->nb_tiles) return AVERROR_INVALIDDATA; + tile_grid->offsets[i].idx = i; tile_grid->offsets[i].horizontal = x; tile_grid->offsets[i].vertical = y;