diff --git a/libavformat/utils.c b/libavformat/utils.c index dbe6ea08e1..eb50535330 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2261,7 +2261,7 @@ AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base, int6 return NULL; dynarray_add(&s->chapters, &s->nb_chapters, chapter); } - av_free(chapter->title); + av_free(chapter->title); chapter->title = av_strdup(title); chapter->id = id; chapter->time_base= time_base;