# HG changeset patch # User faust3 # Date 1119799287 0 # Node ID c1eb194d56e01828fdd69e82870856368f5505d9 # Parent cce2717344f4c64a619a5665181a8cec94acb95b 10l diff -r cce2717344f4 -r c1eb194d56e0 libmpdemux/demux_vqf.c --- 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; }