summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
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 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, '?');