hlsenc: Don't duplicate a string constant
authorMartin Storsjö <martin@martin.st>
Sun, 23 Dec 2012 19:34:06 +0000 (21:34 +0200)
committerMartin Storsjö <martin@martin.st>
Sun, 23 Dec 2012 22:02:48 +0000 (00:02 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/hlsenc.c

index c5157dc..eade740 100644 (file)
@@ -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;