[FFmpeg-devel] [PATCH 1/2] udp: remove dead code line (unused result)

Andrey Utkin andrey.krieger.utkin at gmail.com
Mon Mar 12 16:09:52 CET 2012


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

diff --git a/libavformat/udp.c b/libavformat/udp.c
index cfc5ae5..b914f9b 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -364,7 +364,6 @@ static void *circular_buffer_task( void *_URLContext)
             s->circular_buffer_error = AVERROR(EIO);
             goto end;
         }
-        left = FFMIN(left, s->fifo->end - s->fifo->wptr);
         len = recv(s->udp_fd, s->tmp+4, sizeof(s->tmp)-4, 0);
         if (len < 0) {
             if (ff_neterrno() != AVERROR(EAGAIN) && ff_neterrno() != AVERROR(EINTR)) {
-- 
1.7.3.4



More information about the ffmpeg-devel mailing list