diff options
author | Martin Storsjö <martin@martin.st> | 2010-03-05 08:15:20 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-03-05 08:15:20 +0000 |
commit | 886f3f2f36e9fd140cfeb694bf37a46ab16d3221 (patch) | |
tree | 8fd3058a0396bc23e78dd163a4c75171609e1e9d | |
parent | 3966a5746440205388770076914bdb3d6ce8add4 (diff) | |
download | ffmpeg-886f3f2f36e9fd140cfeb694bf37a46ab16d3221.tar.gz |
Return from rtp_read when select returns an error
Originally committed as revision 22219 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/rtpproto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index 06bd8bf1ae..4af97c1822 100644 --- a/libavformat/rtpproto.c +++ b/libavformat/rtpproto.c @@ -248,6 +248,8 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size) } break; } + } else if (n < 0) { + return AVERROR(EIO); } } #endif |