diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-23 01:41:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-23 01:41:15 +0100 |
commit | 3dcbafc777513621e423c2f23b1725559230383d (patch) | |
tree | 003b05d70855fa636420786a96c2499b0a1520cf /libavformat | |
parent | 9eb0d8bab1c475edf73c36146d1c3d31ea47f997 (diff) | |
download | ffmpeg-3dcbafc777513621e423c2f23b1725559230383d.tar.gz |
udp: return circular buffer error if such error happened.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/udp.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |