diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-12-21 00:27:00 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-12-22 22:02:06 +0100 |
commit | 005b360b9c6948637efc55fd77bb6fa9f5d3c940 (patch) | |
tree | 6ebfad54bf18a81b43c4f7b65ac7931abd875871 /libavformat | |
parent | e749b5dd9873eb6fb31dde9041c81d5032574de2 (diff) | |
download | ffmpeg-streaming-005b360b9c6948637efc55fd77bb6fa9f5d3c940.zip ffmpeg-streaming-005b360b9c6948637efc55fd77bb6fa9f5d3c940.tar.gz |
lavf/hlsenc: fix basename size computation off-by-one bug
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/hlsenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index d5058a1..07aa4ff 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; |