Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-12-21 03:27:00 +0400
committerStefano Sabatini <stefasab@gmail.com>2012-12-23 01:02:06 +0400
commit005b360b9c6948637efc55fd77bb6fa9f5d3c940 (patch)
tree6ebfad54bf18a81b43c4f7b65ac7931abd875871 /libavformat
parente749b5dd9873eb6fb31dde9041c81d5032574de2 (diff)
lavf/hlsenc: fix basename size computation off-by-one bug
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index d5058a1a5e..07aa4ff512 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -178,7 +178,7 @@ static int hls_write_header(AVFormatContext *s)
int ret, i;
char *p;
const char *pattern = "%d.ts";
- int basename_size = strlen(s->filename) + strlen(pattern);
+ int basename_size = strlen(s->filename) + strlen(pattern) + 1;
hls->number = 0;