diff --git a/libavformat/mov.c b/libavformat/mov.c index 3cc9812a4d1ef787c7ae9f3c64e290227e977e1f..c3882b4a84aa4ec5d12bdd2659f5b3a75b40e4ac 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1241,7 +1241,7 @@ static int mov_read_cslg(MOVContext *c, ByteIOContext *pb, MOVAtom atom) AVStream *st; MOVStreamContext *sc; - if (c->fc->nb_streams < 1) // will happen with jp2 files + if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; sc = st->priv_data;