[FFmpeg-devel] [PATCH] lavf/hls: Remove the dead code in parse_playlist()

Steven Liu lq at chinaffmpeg.org
Wed Apr 4 07:09:18 EEST 2018



> On 2 Apr 2018, at 10:18, Steven Liu <lq at chinaffmpeg.org> wrote:
> 
> 
> 
>> On 2 Apr 2018, at 07:09, Jun Zhao <mypopydev at gmail.com> wrote:
>> 
>> <0001-lavf-hls-Remove-the-dead-code-in-parse_playlist.patch>
> 
> From 96de206d191264d2a5aacff5f877caad1d861439 Mon Sep 17 00:00:00 2001
> From: Jun Zhao <mypopydev at gmail.com>
> Date: Sun, 1 Apr 2018 11:17:45 +0800
> Subject: [PATCH] lavf/hls: Remove the dead code in  parse_playlist()
> 
> Signed-off-by: Jun Zhao <mypopydev at gmail.com>
> ---
> libavformat/hls.c | 7 -------
> 1 file changed, 7 deletions(-)
> 
> diff --git a/libavformat/hls.c b/libavformat/hls.c
> index c578bf86e3..ae0545a086 100644
> --- a/libavformat/hls.c
> +++ b/libavformat/hls.c
> @@ -743,7 +743,6 @@ static int parse_playlist(HLSContext *c, const char *url,
>     }
> 
>     if (!in) {
> -#if 1
>         AVDictionary *opts = NULL;
>         /* Some HLS servers don't like being sent the range header */
>         av_dict_set(&opts, "seekable", "0", 0);
> @@ -766,12 +765,6 @@ static int parse_playlist(HLSContext *c, const char *url,
>             c->playlist_pb = in;
>         else
>             close_in = 1;
> -#else
> -        ret = open_in(c, &in, url);
> -        if (ret < 0)
> -            return ret;
> -        close_in = 1;
> -#endif
>     }
> 
>     if (av_opt_get(in, "location", AV_OPT_SEARCH_CHILDREN, &new_url) >= 0)
> -- 
> 2.14.1
> 
> 
> 
> 
> 
> should be ok!
Pushed
> 
> Thanks
> Steven
> 
> 
> 
> 
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Thanks
Steven







More information about the ffmpeg-devel mailing list