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>
pull/390/head
Vignesh Venkatasubramanian via ffmpeg-devel 1 year ago committed by Michael Niedermayer
parent 9b00b5734d
commit 9132a0fbe2
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 2
      libavformat/mov.c

@ -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) {

Loading…
Cancel
Save