From 886f3f2f36e9fd140cfeb694bf37a46ab16d3221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 5 Mar 2010 08:15:20 +0000 Subject: [PATCH] Return from rtp_read when select returns an error Originally committed as revision 22219 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtpproto.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- GitLab