[MPlayer-cvslog] CVS: main/libmpdemux pnm.c,1.11,1.12

Roberto Togni CVS syncmail at mplayerhq.hu
Sat Apr 9 16:50:39 CEST 2005


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv26897

Modified Files:
	pnm.c 
Log Message:
"Fix" for pnm EOF detection (stop on read errors)


Index: pnm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/pnm.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- pnm.c	9 Apr 2005 13:44:43 -0000	1.11
+++ pnm.c	9 Apr 2005 14:50:36 -0000	1.12
@@ -668,6 +668,7 @@
    */
   
   n = rm_read (p->s, p->buffer, 8);
+  if (n<0) return -1;
   if (n<8) return 0;
   
   /* skip 8 bytes if 0x62 is read */




More information about the MPlayer-cvslog mailing list