mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-02 03:06:28 +02:00
segment: replace strdup() by av_strdup()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
52673ab18a
commit
5cdcc44e41
@ -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';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user