Commit 5cdcc44e authored by Michael Niedermayer's avatar Michael Niedermayer

segment: replace strdup() by av_strdup()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 52673ab1
...@@ -98,7 +98,7 @@ static int seg_write_header(AVFormatContext *s) ...@@ -98,7 +98,7 @@ static int seg_write_header(AVFormatContext *s)
if (!seg->path) { if (!seg->path) {
char *t; char *t;
seg->path = strdup(s->filename); seg->path = av_strdup(s->filename);
t = rindex(seg->path, '.'); t = rindex(seg->path, '.');
if (t) t = '\0'; if (t) t = '\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