mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avformat/udp: modify the not write-only to read-only mode.
not write-only include read-write pseudo flag. so make the flag read-only Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
bc0bedf3c9
commit
9faee5bc14
@ -797,7 +797,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
|
||||
* receiving UDP packets from other sources aimed at the same UDP
|
||||
* port. This fails on windows. This makes sending to the same address
|
||||
* using sendto() fail, so only do it if we're opened in read-only mode. */
|
||||
if (s->is_multicast && !(h->flags & AVIO_FLAG_WRITE)) {
|
||||
if (s->is_multicast && (h->flags & AVIO_FLAG_READ)) {
|
||||
bind_ret = bind(udp_fd,(struct sockaddr *)&s->dest_addr, len);
|
||||
}
|
||||
/* bind to the local address if not multicast or if the multicast
|
||||
|
Loading…
Reference in New Issue
Block a user