Commit 60c801c6 authored by Stefano Sabatini's avatar Stefano Sabatini

lavf/hlsenc: reuse pattern string, rather than redefining it

Improve robustness.
parent 005b360b
...@@ -215,7 +215,7 @@ static int hls_write_header(AVFormatContext *s) ...@@ -215,7 +215,7 @@ static int hls_write_header(AVFormatContext *s)
if (p) if (p)
*p = '\0'; *p = '\0';
av_strlcat(hls->basename, "%d.ts", basename_size); av_strlcat(hls->basename, pattern, basename_size);
if ((ret = hls_mux_init(s)) < 0) if ((ret = hls_mux_init(s)) < 0)
goto fail; goto fail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment