From 3dcbafc777513621e423c2f23b1725559230383d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 23 Dec 2011 01:41:15 +0100 Subject: udp: return circular buffer error if such error happened. Signed-off-by: Michael Niedermayer --- libavformat/udp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/udp.c') diff --git a/libavformat/udp.c b/libavformat/udp.c index 281f5158b3..3cdee067f2 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -556,6 +556,8 @@ static int udp_read(URLContext *h, uint8_t *buf, int size) av_fifo_generic_read(s->fifo, buf, avail, NULL); av_fifo_drain(s->fifo, AV_RL32(tmp) - avail); return avail; + } else if(s->circular_buffer_error){ + return s->circular_buffer_error; } else { FD_ZERO(&rfds); -- cgit v1.2.3