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:
Michael Niedermayer 2015-08-26 03:30:45 +02:00
parent 68a9c8ac77
commit dda6925357
1 changed files with 1 additions and 0 deletions

View File

@ -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