2017-11-09 2:17 GMT+08:00 Timo Rothenpieler <t...@rothenpieler.org>: > Fixes CID #1420394 > --- > libavformat/hlsenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c > index 5ea9d216a4..b571772f60 100644 > --- a/libavformat/hlsenc.c > +++ b/libavformat/hlsenc.c > @@ -1455,7 +1455,7 @@ static int hls_write_header(AVFormatContext *s) > if (basename_size > 0) { > hls->base_output_dirname = av_malloc(basename_size); > } else { > - hls->base_output_dirname = > av_malloc(strlen(hls->fmp4_init_filename)); > + hls->base_output_dirname = > av_malloc(strlen(hls->fmp4_init_filename) + 1); > } > if (!hls->base_output_dirname) { > ret = AVERROR(ENOMEM); > -- > 2.14.2 > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
pushed Thanks _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel