Commit 005b360b authored by Stefano Sabatini's avatar Stefano Sabatini

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

parent e749b5dd
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment