Browse Source

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>
tags/n4.4
Zhao Zhili Marton Balint 5 years ago
parent
commit
15a74d21f3
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavformat/udp.c

+ 0
- 3
libavformat/udp.c 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)) {


Loading…
Cancel
Save