OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8655c54
)
udp: Fix local_port management
author
Luca Barbato
<lu_zero@gentoo.org>
Sun, 29 Mar 2015 13:19:35 +0000
(15:19 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Mon, 22 Jun 2015 07:47:29 +0000
(10:47 +0300)
The default value for unset is -1, not 0.
Problem introduced in
66028b7ba6b411ba12ef553e9c8f1f4a4fe27710
libavformat/udp.c
patch
|
blob
|
history
diff --git
a/libavformat/udp.c
b/libavformat/udp.c
index
dfc3b5a
..
04e60e3
100644
(file)
--- 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])