[FFmpeg-devel] [PATCH] avformat/udp: remove redundant setting of h->max_packet_size

Zhao Zhili quinkblack at foxmail.com
Sun Oct 11 19:52:50 EEST 2020


Ping.


On Thu, Sep 24, 2020 at 12:15 AM Zhao Zhili <quinkblack at foxmail.com> wrote:
>
> h->max_packet_size is being reset in the following code.
> ---
>  libavformat/udp.c | 3 ---
>  1 file changed, 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)) {
> --
LGTM
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list