avformat/mov: pass stream index to sanity_checks on HEIF images

Instead of item_id. Same behavior as with standard video tracks.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2025-08-16 21:38:32 -03:00
parent a28e01a6c1
commit a2cfaf1b91

View file

@ -10470,7 +10470,7 @@ static int mov_parse_heif_items(AVFormatContext *s)
sc->sample_size = sc->stsz_sample_size = item->extent_length;
sc->sample_count = 1;
err = sanity_checks(s, sc, item->item_id);
err = sanity_checks(s, sc, st->index);
if (err)
return AVERROR_INVALIDDATA;