[FFmpeg-devel] [PATCH 3/3] avformat:hlsenc.c: remove the useless variable - fmp4_init_mode.

Liu Steven lq at chinaffmpeg.org
Tue Oct 9 12:31:07 EEST 2018



> 在 2018年10月9日,下午5:25,Charles Liu <liuchh83 at gmail.com> 写道:
> 
> Signed-off-by: Charles Liu <liuchh83 at gmail.com>
> ---
> libavformat/hlsenc.c | 4 ----
> 1 file changed, 4 deletions(-)
> 
> diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
> index c322b5a48f..0fd5d2a995 100644
> --- a/libavformat/hlsenc.c
> +++ b/libavformat/hlsenc.c
> @@ -147,7 +147,6 @@ typedef struct VariantStream {
> 
>     char *fmp4_init_filename;
>     char *base_output_dirname;
> -    int fmp4_init_mode;
> 
>     AVStream **streams;
>     char codec_attr[128];
> @@ -733,7 +732,6 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
>     vs->packets_written = 1;
>     vs->start_pos = 0;
>     vs->new_start = 1;
> -    vs->fmp4_init_mode = 0;
> 
>     if (hls->segment_type == SEGMENT_TYPE_FMP4) {
>         if (hls->max_seg_size > 0) {
> @@ -743,7 +741,6 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
> 
>         vs->packets_written = 0;
>         vs->init_range_length = 0;
> -        vs->fmp4_init_mode = !byterange_mode;
>         set_http_options(s, &options, hls);
>         if ((ret = avio_open_dyn_buf(&oc->pb)) < 0)
>             return ret;
> @@ -2291,7 +2288,6 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
>             vs->start_pos += vs->size;
>         }
> 
> -        vs->fmp4_init_mode = 0;
>         if (hls->flags & HLS_SINGLE_FILE) {
>             vs->number++;
>         } else if (hls->max_seg_size > 0) {
> -- 
> 2.19.1
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

patchset LGTM, waiting other reviewers comments.


Thanks



More information about the ffmpeg-devel mailing list