From 4a9f7d2bf9fb38c334386deef19ffef58a998cc6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st>
Date: Sun, 23 Dec 2012 21:34:06 +0200
Subject: [PATCH] hlsenc: Don't duplicate a string constant
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Martin Storsjö <martin@martin.st>
---
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index c5157dc6c7e..eade740f074 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -219,7 +219,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;
-- 
GitLab