Unified · Split
| @@ -780,7 +780,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) · 779 unmodified lines | ||
| 780 | 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 | 784 | s->local_port = port; |
| 785 | 785 | |
| 786 | 786 | udp_fd = udp_socket_create(h, &my_addr, &len, s->localaddr); |