changeset 15077:a893e0bfa9d6

"Fix" for pnm EOF detection (stop on read errors)
author rtognimp
date Sat, 09 Apr 2005 14:50:36 +0000
parents 1a02a23202c2
children b22f4ce0580a
files libmpdemux/pnm.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/pnm.c	Sat Apr 09 13:44:43 2005 +0000
+++ b/libmpdemux/pnm.c	Sat Apr 09 14:50:36 2005 +0000
@@ -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 */