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

Improve robustness.
This commit is contained in:
Stefano Sabatini 2012-12-21 00:28:46 +01:00
parent 005b360b9c
commit 60c801c679

View File

@ -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;