don't set a dummy chapter title when title is unknown
authorAurelien Jacobs <aurel@gnuage.org>
Fri, 23 May 2008 11:47:11 +0000 (11:47 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Fri, 23 May 2008 11:47:11 +0000 (11:47 +0000)
Originally committed as revision 13249 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/matroskadec.c

index b038267..1fdf399 100644 (file)
@@ -2254,7 +2254,7 @@ matroska_parse_chapters(AVFormatContext *s)
                         start = start * AV_TIME_BASE / 1000000000;
                         if (end != AV_NOPTS_VALUE)
                             end = end * AV_TIME_BASE / 1000000000;
-                        res = ff_new_chapter(s, start, end, title ? title : "(unnamed)");
+                        res = ff_new_chapter(s, start, end, title);
                     }
                     av_free(title);
                     break;