ffmpeg | branch: master | Vignesh Venkatasubramanian via ffmpeg-devel <ffmpeg-de...@ffmpeg.org> | Tue Oct 3 16:04:19 2023 -0700| [9132a0fbe25d472952872c67abe818aec5d64e4a] | committer: Michael Niedermayer
avformat/mov: Disallow more than one meta box for AVIF This is not allowed per the spec. Signed-off-by: Vignesh Venkatasubramanian <vigne...@google.com> Reviewed-by: Vittorio Giovara <vittorio.giov...@gmail.com> Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9132a0fbe25d472952872c67abe818aec5d64e4a --- libavformat/mov.c | 2 ++ 1 file changed, 2 insertions(+) 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) { _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".