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

aurel subversion
Thu Jun 5 01:11:47 CEST 2008


Author: aurel
Date: Thu Jun  5 01:11:47 2008
New Revision: 13657

Log:
matroskadec: don't remove dummy level when none was added


Modified:
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	(original)
+++ trunk/libavformat/matroskadec.c	Thu Jun  5 01:11:47 2008
@@ -1888,6 +1888,7 @@ matroska_parse_seekhead (MatroskaDemuxCo
             case MATROSKA_ID_SEEKENTRY: {
                 uint32_t seek_id = 0, peek_id_cache = 0;
                 uint64_t seek_pos = (uint64_t) -1, t;
+                int dummy_level = 0;
 
                 if ((res = ebml_read_master(matroska, &id)) < 0)
                     break;
@@ -1964,6 +1965,7 @@ matroska_parse_seekhead (MatroskaDemuxCo
                         level.length = (uint64_t)-1;
                         matroska->levels[matroska->num_levels] = level;
                         matroska->num_levels++;
+                        dummy_level = 1;
 
                         /* check ID */
                         if (!(id = ebml_peek_id (matroska,
@@ -2000,6 +2002,7 @@ matroska_parse_seekhead (MatroskaDemuxCo
 
                     finish:
                         /* remove dummy level */
+                        if (dummy_level)
                         while (matroska->num_levels) {
                             matroska->num_levels--;
                             length =




More information about the ffmpeg-cvslog mailing list