[MPlayer-cvslog] CVS: main/libmpdemux demux_y4m.c,1.8,1.9
Sascha Sommer CVS
syncmail at mplayerhq.hu
Sun Jun 26 17:10:41 CEST 2005
CVS change done by Sascha Sommer CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv18028/libmpdemux
Modified Files:
demux_y4m.c
Log Message:
10l
Index: demux_y4m.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_y4m.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- demux_y4m.c 3 Jun 2004 09:52:25 -0000 1.8
+++ demux_y4m.c 26 Jun 2005 15:10:39 -0000 1.9
@@ -30,7 +30,9 @@
mp_msg(MSGT_DEMUX, MSGL_V, "Checking for YUV4MPEG2\n");
- stream_read(demuxer->stream, buf, 9);
+ if(stream_read(demuxer->stream, buf, 9)!=9)
+ return 0;
+
buf[9] = 0;
if (strncmp("YUV4MPEG2", buf, 9) && strncmp("YUV4MPEG ", buf, 9)) {
More information about the MPlayer-cvslog
mailing list