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:
parent
a28e01a6c1
commit
a2cfaf1b91
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue