diff --git a/libavformat/mov.c b/libavformat/mov.c index e6c2dca0ba..6c5caa7d04 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5516,6 +5516,11 @@ static int mov_read_coll(MOVContext *c, AVIOContext *pb, MOVAtom atom) } avio_skip(pb, 3); /* flags */ + if (sc->coll){ + av_log(c->fc, AV_LOG_WARNING, "Ignoring duplicate COLL\n"); + return 0; + } + sc->coll = av_content_light_metadata_alloc(&sc->coll_size); if (!sc->coll) return AVERROR(ENOMEM);