[FFmpeg-cvslog] r9216 - trunk/libavformat/matroskadec.c

aurel subversion
Tue Jun 5 00:17:55 CEST 2007


Author: aurel
Date: Tue Jun  5 00:17:55 2007
New Revision: 9216

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

Modified:
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	(original)
+++ trunk/libavformat/matroskadec.c	Tue Jun  5 00:17:55 2007
@@ -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;




More information about the ffmpeg-cvslog mailing list