avformat/udp: don't override 0 localport
This commit is contained in:
parent
492aef2d94
commit
23c70e3740
1 changed files with 1 additions and 1 deletions
|
|
@ -780,7 +780,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
|
|||
goto fail;
|
||||
}
|
||||
|
||||
if ((s->is_multicast || s->local_port <= 0) && (h->flags & AVIO_FLAG_READ))
|
||||
if ((s->is_multicast || s->local_port < 0) && (h->flags & AVIO_FLAG_READ))
|
||||
s->local_port = port;
|
||||
|
||||
udp_fd = udp_socket_create(h, &my_addr, &len, s->localaddr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue