avformat/udp: remove redundant setting of h->max_packet_size

h->max_packet_size is being reset in the following code.

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Zhao Zhili 2020-09-24 00:15:16 +08:00 committed by Marton Balint
parent f076a5fef6
commit 15a74d21f3
1 changed files with 0 additions and 3 deletions

View File

@ -650,9 +650,6 @@ static int udp_open(URLContext *h, const char *uri, int flags)
goto fail;
}
if (s->pkt_size > 0)
h->max_packet_size = s->pkt_size;
p = strchr(uri, '?');
if (p) {
if (av_find_info_tag(buf, sizeof(buf), "reuse", p)) {