changeset 11934:bef061911390

Exit when an invalid EBML ID has been read (e.g. for files that have been cut off).
author mosu
date Mon, 09 Feb 2004 19:21:08 +0000
parents e5d91f0ee304
children 3fd276f89f2b
files libmpdemux/demux_mkv.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c	Mon Feb 09 17:57:17 2004 +0000
+++ b/libmpdemux/demux_mkv.c	Mon Feb 09 19:21:08 2004 +0000
@@ -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;