[FFmpeg-cvslog] segment: replace strdup() by av_strdup()

Michael Niedermayer git at videolan.org
Mon Oct 17 03:49:04 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 17 03:36:22 2011 +0200| [5cdcc44e4138f9c96841cbf02d4394e882da07bc] | committer: Michael Niedermayer

segment: replace strdup() by av_strdup()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5cdcc44e4138f9c96841cbf02d4394e882da07bc
---

 libavformat/segment.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/segment.c b/libavformat/segment.c
index 91905cf..91c4e91 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';
     }



More information about the ffmpeg-cvslog mailing list