mirror of https://github.com/mpv-player/mpv
"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:
parent
a319fea77f
commit
b5e683f42d
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue