mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-06 20:29:45 +00:00
udp: Fix local_port management
The default value for unset is -1, not 0. Problem introduced in 66028b7ba6b411ba12ef553e9c8f1f4a4fe27710
This commit is contained in:
parent
8655c54160
commit
61dc9d647c
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user