summaryrefslogtreecommitdiff
path: root/libavformat/rtpproto.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-03-05 08:15:20 +0000
committerMartin Storsjö <martin@martin.st>2010-03-05 08:15:20 +0000
commit886f3f2f36e9fd140cfeb694bf37a46ab16d3221 (patch)
tree8fd3058a0396bc23e78dd163a4c75171609e1e9d /libavformat/rtpproto.c
parent3966a5746440205388770076914bdb3d6ce8add4 (diff)
Return from rtp_read when select returns an error
Originally committed as revision 22219 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpproto.c')
-rw-r--r--libavformat/rtpproto.c2
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