changeset 20470:054516eecb9b

Better check for non-broken NSVf-header to avoid incorrect detection.
author reimar
date Sat, 28 Oct 2006 10:44:45 +0000
parents 54babf7ca302
children 0398b9cbd66d
files libmpdemux/demux_nsv.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_nsv.c	Sat Oct 28 10:21:30 2006 +0000
+++ b/libmpdemux/demux_nsv.c	Sat Oct 28 10:44:45 2006 +0000
@@ -170,6 +170,8 @@
                 
             // NSVs
             stream_read(demuxer->stream,hdr,17);        
+            if (stream_eof(demuxer->stream) || strncmp(hdr, "NSVs", 4))
+                return 0;
         }
 
         // dummy debug message