[FFmpeg-cvslog] udp: return circular buffer error if such error happened.

Michael Niedermayer git at videolan.org
Fri Dec 23 02:03:05 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 23 01:41:15 2011 +0100| [3dcbafc777513621e423c2f23b1725559230383d] | committer: Michael Niedermayer

udp: return circular buffer error if such error happened.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3dcbafc777513621e423c2f23b1725559230383d
---

 libavformat/udp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 281f515..3cdee06 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);



More information about the ffmpeg-cvslog mailing list