summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorZhao Zhili <quinkblack@foxmail.com>2020-09-24 00:15:16 +0800
committerMarton Balint <cus@passwd.hu>2020-10-16 23:16:55 +0200
commit15a74d21f3d7e8e6eca475903ef6252343861483 (patch)
tree2abb5e593f756e65622d9cf4d1ffb2f67bba7611 /libavformat/udp.c
parentf076a5fef63d431107a9431cd4b1b82aea164f67 (diff)
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>
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 30d8041433..96d8b8ee11 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -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)) {