avformat/segment: Do not free the filename twice

Bug introduced in 83a508cda5

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/150/head
Michael Niedermayer 10 years ago
parent 68a9c8ac77
commit dda6925357
  1. 1
      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

Loading…
Cancel
Save