diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-03-29 15:19:35 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-06-22 10:47:29 +0300 |
commit | 61dc9d647c6664e11674d9a10fdde29987d6acda (patch) | |
tree | 958a1cdc399a072eb668abb450fa8f5438e0acd6 /libavformat/udp.c | |
parent | 8655c54160767de1a6b96f8bc310d6e4eaceff48 (diff) | |
download | ffmpeg-61dc9d647c6664e11674d9a10fdde29987d6acda.tar.gz |
udp: Fix local_port management
The default value for unset is -1, not 0.
Problem introduced in 66028b7ba6b411ba12ef553e9c8f1f4a4fe27710
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 dfc3b5aaab..04e60e3793 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -519,7 +519,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) goto fail; } - if ((s->is_multicast || !s->local_port) && (h->flags & AVIO_FLAG_READ)) + if ((s->is_multicast || s->local_port < 0) && (h->flags & AVIO_FLAG_READ)) s->local_port = port; if (localaddr[0]) |