remove useless title check
authorAurelien Jacobs <aurel@gnuage.org>
Sat, 24 May 2008 12:55:36 +0000 (12:55 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Sat, 24 May 2008 12:55:36 +0000 (12:55 +0000)
Originally committed as revision 13279 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/utils.c

index 7faedcc..dbe6ea0 100644 (file)
@@ -2261,7 +2261,6 @@ AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base, int6
             return NULL;
         dynarray_add(&s->chapters, &s->nb_chapters, chapter);
     }
-    if(chapter->title)
         av_free(chapter->title);
     chapter->title = av_strdup(title);
     chapter->id    = id;