summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-29 22:05:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-03-29 22:06:44 +0200
commit83443505090d7749de7ca684f7c338ed0b8cbbab (patch)
treef0d5f0b5235dab042b83fbd5efacc264ba8f0385 /libavformat/udp.c
parentde2aaf1a2a14c07793a99c41596e0b436ec3736d (diff)
parentff7adead0a667e606f5a41dca591f074f9ff2f32 (diff)
Merge commit 'ff7adead0a667e606f5a41dca591f074f9ff2f32'
* commit 'ff7adead0a667e606f5a41dca591f074f9ff2f32': udp: Fix pkt_size management Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index b6a4724309..affa08ea00 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -591,7 +591,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, '?');