mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
lavf/hlsenc: reuse pattern string, rather than redefining it
Improve robustness.
This commit is contained in:
parent
005b360b9c
commit
60c801c679
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user