changeset 15818:c1eb194d56e0

10l
author faust3
date Sun, 26 Jun 2005 15:21:27 +0000
parents cce2717344f4
children dd23cdecf060
files libmpdemux/demux_vqf.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_vqf.c	Sun Jun 26 15:15:38 2005 +0000
+++ b/libmpdemux/demux_vqf.c	Sun Jun 26 15:21:27 2005 +0000
@@ -16,7 +16,8 @@
   char buf[KEYWORD_BYTES];
   stream_t *s;
   s = demuxer->stream;
-  stream_read(s,buf,KEYWORD_BYTES);
+  if(stream_read(s,buf,KEYWORD_BYTES)!=KEYWORD_BYTES)
+    return 0;
   if(memcmp(buf,"TWIN",KEYWORD_BYTES)==0) return 1; /*version: 97012000*/
   return 0;
 }