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

Improve robustness.
pull/8/head
Stefano Sabatini 12 years ago
parent 005b360b9c
commit 60c801c679
  1. 2
      libavformat/hlsenc.c

@ -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…
Cancel
Save