mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/segment: Do not free the filename twice
Bug introduced in 83a508cda5
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
68a9c8ac77
commit
dda6925357
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue