From 5cdcc44e4138f9c96841cbf02d4394e882da07bc Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 17 Oct 2011 03:36:22 +0200 Subject: [PATCH] segment: replace strdup() by av_strdup() Signed-off-by: Michael Niedermayer --- libavformat/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index 91905cf35f..91c4e9130f 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -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'; }