segment: replace strdup() by av_strdup()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
52673ab18a
commit
5cdcc44e41
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ static int seg_write_header(AVFormatContext *s)
|
|||
|
||||
if (!seg->path) {
|
||||
char *t;
|
||||
seg->path = strdup(s->filename);
|
||||
seg->path = av_strdup(s->filename);
|
||||
t = rindex(seg->path, '.');
|
||||
if (t) t = '\0';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue