# HG changeset patch # User aurel # Date 1180995475 0 # Node ID a3d59411106f10f5d7f3ba9243e807cc860e2574 # Parent 3aa1f0f698deae7a8590acfd6aa1592045162c20 fix an infinite loop in case one cluster is not enough to demux a packet diff -r 3aa1f0f698de -r a3d59411106f matroskadec.c --- 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;