diff --git a/libavformat/mov.c b/libavformat/mov.c index 348c648d60..5d1e29c429 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5453,6 +5453,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);