summaryrefslogtreecommitdiffstats
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-12-21 00:28:46 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-12-22 22:02:06 +0100
commit60c801c679c89fc657f787444d03f69dc578b6aa (patch)
tree3303b40ced87e352828127cfde17755d2f4e2685 /libavformat/hlsenc.c
parent005b360b9c6948637efc55fd77bb6fa9f5d3c940 (diff)
downloadffmpeg-streaming-60c801c679c89fc657f787444d03f69dc578b6aa.zip
ffmpeg-streaming-60c801c679c89fc657f787444d03f69dc578b6aa.tar.gz
lavf/hlsenc: reuse pattern string, rather than redefining it
Improve robustness.
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 07aa4ff..55074c7 100644
--- a/libavformat/hlsenc.c
+++ b/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;
OpenPOWER on IntegriCloud