History

avformat/udp: don't override 0 localport

Timo Rothenpieler committed 1 year ago

Commit 23c70e31 parent 492aef21 file · +1 −1Browse files

Unified · Split

libavformat/udp.c+1−1
@@ -780,7 +780,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) · 779 unmodified lines
780 goto fail;780 goto fail;
781 }781 }
782 782
783 if ((s->is_multicast || s->local_port <= 0) && (h->flags & AVIO_FLAG_READ))783 if ((s->is_multicast || s->local_port < 0) && (h->flags & AVIO_FLAG_READ))
784 s->local_port = port;784 s->local_port = port;
785 785
786 udp_fd = udp_socket_create(h, &my_addr, &len, s->localaddr);786 udp_fd = udp_socket_create(h, &my_addr, &len, s->localaddr);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t