提交 407a3d94 编写于 作者: A Aurelien Jacobs

fix an infinite loop in case one cluster is not enough to demux a packet

Originally committed as revision 9216 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 b061d892
......@@ -2531,7 +2531,7 @@ matroska_read_packet (AVFormatContext *s,
AVPacket *pkt)
{
MatroskaDemuxContext *matroska = s->priv_data;
int res = 0;
int res;
uint32_t id;
/* Read stream until we have a packet queued. */
......@@ -2541,6 +2541,7 @@ matroska_read_packet (AVFormatContext *s,
if (matroska->done)
return AVERROR_IO;
res = 0;
while (res == 0) {
if (!(id = ebml_peek_id(matroska, &matroska->level_up))) {
return AVERROR_IO;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册