[Mplayer-cvslog] CVS: main/libmpdemux demux_mkv.c,1.8,1.9

Moritz Bunkus CVS syncmail at mplayerhq.hu
Mon Feb 9 20:21:11 CET 2004


CVS change done by Moritz Bunkus CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv19822

Modified Files:
	demux_mkv.c 
Log Message:
Exit when an invalid EBML ID has been read (e.g. for files that have been cut off).

Index: demux_mkv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- demux_mkv.c	1 Feb 2004 10:58:50 -0000	1.8
+++ demux_mkv.c	9 Feb 2004 19:21:08 -0000	1.9
@@ -2634,6 +2634,9 @@
                     break;
                   }
 
+                case EBML_ID_INVALID:
+                  return 0;
+
                 default:
                   ebml_read_skip (s, &l);
                   break;
@@ -2676,6 +2679,9 @@
                   l = tmp;
                   break;
 
+                case EBML_ID_INVALID:
+                  return 0;
+
                 default:
                   ebml_read_skip (s, &l);
                   break;




More information about the MPlayer-cvslog mailing list