[FFmpeg-devel] [PATCH] avformat/dashenc: Support HTTP persistent for init segments as well

Jeyapal, Karthick kjeyapal at akamai.com
Fri Oct 26 11:15:46 EEST 2018


On 10/21/18 6:50 AM, Karthick J wrote:
> ---
>  libavformat/dashenc.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
> index b0a59af3ee..4e2ea2ebf2 100644
> --- a/libavformat/dashenc.c
> +++ b/libavformat/dashenc.c
> @@ -355,8 +355,11 @@ static int flush_init_segment(AVFormatContext *s, OutputStream *os)
>          return ret;
>  
>      os->pos = os->init_range_length = range_length;
> -    if (!c->single_file)
> -        ff_format_io_close(s, &os->out);
> +    if (!c->single_file) {
> +        char filename[1024];
> +        snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
> +        dashenc_io_close(s, &os->out, filename);
> +    }
>      return 0;
>  }
>  
Pushed.



More information about the ffmpeg-devel mailing list