[FFmpeg-cvslog] lavf/hlsenc: reuse pattern string, rather than redefining it
Stefano Sabatini
git at videolan.org
Sat Dec 22 22:04:59 CET 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri Dec 21 00:28:46 2012 +0100| [60c801c679c89fc657f787444d03f69dc578b6aa] | committer: Stefano Sabatini
lavf/hlsenc: reuse pattern string, rather than redefining it
Improve robustness.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=60c801c679c89fc657f787444d03f69dc578b6aa
---
libavformat/hlsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list