Return from rtp_read when select returns an error

Originally committed as revision 22219 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Martin Storsjö 2010-03-05 08:15:20 +00:00
parent 3966a57464
commit 886f3f2f36

View File

@ -248,6 +248,8 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size)
}
break;
}
} else if (n < 0) {
return AVERROR(EIO);
}
}
#endif