1
0
Fork 0

avformat/mov: Disallow more than one meta box for AVIF

This is not allowed per the spec.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Vignesh Venkatasubramanian via ffmpeg-devel 2023-10-03 16:04:19 -07:00 committed by Michael Niedermayer
parent 9b00b5734d
commit 9132a0fbe2
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 2 additions and 0 deletions

View File

@ -4903,6 +4903,8 @@ static int avif_add_stream(MOVContext *c, int item_id)
{
MOVStreamContext *sc;
AVStream *st;
if (c->fc->nb_streams)
return AVERROR_INVALIDDATA;
int item_index = -1;
for (int i = 0; i < c->avif_info_size; i++)
if (c->avif_info[i].item_id == item_id) {