[FFmpeg-cvslog] avformat/segment: Do not free the filename twice
Michael Niedermayer
git at videolan.org
Wed Aug 26 04:02:54 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Aug 26 03:30:45 2015 +0200| [dda69253578fbde677a68392539cc3fb3808dce0] | committer: Michael Niedermayer
avformat/segment: Do not free the filename twice
Bug introduced in 83a508cda5115c61b456aeb227bf770d61010961
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dda69253578fbde677a68392539cc3fb3808dce0
---
libavformat/segment.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 9345dc9..7f9367c 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -348,6 +348,7 @@ static int segment_end(AVFormatContext *s, int write_trailer, int is_last)
/* append new element */
memcpy(entry, &seg->cur_entry, sizeof(*entry));
+ entry->filename = av_strdup(entry->filename);
if (!seg->segment_list_entries)
seg->segment_list_entries = seg->segment_list_entries_end = entry;
else
More information about the ffmpeg-cvslog
mailing list