提交 6d19fd5c 编写于 作者: B Baptiste Coudurier

In mov demuxer, check that nb_streams is valid before using it in read_dac3

Originally committed as revision 25240 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 bd8154d0
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册