"Fix" for pnm EOF detection (stop on read errors)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15078 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2005-04-09 14:50:36 +00:00
parent a319fea77f
commit b5e683f42d
1 changed files with 1 additions and 0 deletions

View File

@ -668,6 +668,7 @@ static int pnm_get_stream_chunk(pnm_t *p) {
*/
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 */