lavf/hlsenc: fix basename size computation off-by-one bug

This commit is contained in:
Stefano Sabatini 2012-12-21 00:27:00 +01:00
parent e749b5dd98
commit 005b360b9c
1 changed files with 1 additions and 1 deletions

View File

@ -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;