diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-03-29 16:19:35 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-03-29 18:35:59 +0300 |
commit | ff7adead0a667e606f5a41dca591f074f9ff2f32 (patch) | |
tree | 1cd31f4edc8050848ce61ea8eea1c0179b9ead3f /libavformat/udp.c | |
parent | 72025ac36c740f031d7e413041fdfe97087c83c4 (diff) |
udp: Fix pkt_size management
The default value for unset is -1, not 0.
Problem introduced in 66028b7ba6b411ba12ef553e9c8f1f4a4fe27710
Bug-Id: 835
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r-- | libavformat/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index 321ed29901..dfc3b5aaab 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, '?'); |