mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +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)
|
||||
*p = '\0';
|
||||
|
||||
av_strlcat(hls->basename, "%d.ts", basename_size);
|
||||
av_strlcat(hls->basename, pattern, basename_size);
|
||||
|
||||
if ((ret = hls_mux_init(s)) < 0)
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user