diff options
author | Vignesh Venkatasubramanian via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> | 2023-10-03 16:04:19 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-10-08 18:56:34 +0200 |
commit | 9132a0fbe25d472952872c67abe818aec5d64e4a (patch) | |
tree | 0c8bce547cd869e5ef5d6b5aeb736b8f69d47d25 /libavformat/mov.c | |
parent | 9b00b5734d9868971cb6e6cda0f3b8eeed93be9e (diff) | |
download | ffmpeg-9132a0fbe25d472952872c67abe818aec5d64e4a.tar.gz |
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>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 13ddedcac1..5cc8cd9eb9 100644 --- a/libavformat/mov.c +++ b/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) { |