Browse Source

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

tags/n1.1
Stefano Sabatini 13 years ago
parent
commit
005b360b9c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/hlsenc.c

+ 1
- 1
libavformat/hlsenc.c 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;



Loading…
Cancel
Save