lavf/hlsenc: fix basename size computation off-by-one bug
This commit is contained in:
@@ -178,7 +178,7 @@ static int hls_write_header(AVFormatContext *s)
|
|||||||
int ret, i;
|
int ret, i;
|
||||||
char *p;
|
char *p;
|
||||||
const char *pattern = "%d.ts";
|
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;
|
hls->number = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user