diff --git a/libavformat/mov.c b/libavformat/mov.c index fdf297096e01f02ce0f790beeb2cfe1e294b19e7..89fad78de36b5987b768f3565927d56054ea4d5a 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -567,6 +567,8 @@ static int mov_read_dac3(MOVContext *c, ByteIOContext *pb, MOVAtom atom) AVStream *st; int ac3info, acmod, lfeon; + if (c->fc->nb_streams < 1) + return 0; st = c->fc->streams[c->fc->nb_streams-1]; ac3info = get_be24(pb);