OSDN Git Service

segment: replace strdup() by av_strdup()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 17 Oct 2011 01:36:22 +0000 (03:36 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 17 Oct 2011 01:39:13 +0000 (03:39 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/segment.c

index 91905cf..91c4e91 100644 (file)
@@ -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';
     }