Mercurial > libavformat.hg
changeset 2143:a3d59411106f libavformat
fix an infinite loop in case one cluster is not enough to demux a packet
author | aurel |
---|---|
date | Mon, 04 Jun 2007 22:17:55 +0000 |
parents | 3aa1f0f698de |
children | 7fe203e939e5 |
files | matroskadec.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskadec.c Mon Jun 04 22:10:54 2007 +0000 +++ b/matroskadec.c Mon Jun 04 22:17:55 2007 +0000 @@ -2531,7 +2531,7 @@ 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 @@ if (matroska->done) return AVERROR_IO; + res = 0; while (res == 0) { if (!(id = ebml_peek_id(matroska, &matroska->level_up))) { return AVERROR_IO;