[FFmpeg-cvslog] udp: Fix pkt_size management

Luca Barbato git at videolan.org
Sun Mar 29 22:17:25 CEST 2015


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sun Mar 29 15:19:35 2015 +0200| [ff7adead0a667e606f5a41dca591f074f9ff2f32] | committer: Luca Barbato

udp: Fix pkt_size management

The default value for unset is -1, not 0.

Problem introduced in 66028b7ba6b411ba12ef553e9c8f1f4a4fe27710

Bug-Id: 835

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

 libavformat/udp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 321ed29..dfc3b5a 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -464,7 +464,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
             goto fail;
     }
 
-    if (s->pkt_size)
+    if (s->pkt_size > 0)
         h->max_packet_size = s->pkt_size;
 
     p = strchr(uri, '?');



More information about the ffmpeg-cvslog mailing list