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