mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
don't set a dummy chapter title when title is unknown
Originally committed as revision 13249 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
842ffee386
commit
30897e764a
@ -2254,7 +2254,7 @@ matroska_parse_chapters(AVFormatContext *s)
|
|||||||
start = start * AV_TIME_BASE / 1000000000;
|
start = start * AV_TIME_BASE / 1000000000;
|
||||||
if (end != AV_NOPTS_VALUE)
|
if (end != AV_NOPTS_VALUE)
|
||||||
end = end * AV_TIME_BASE / 1000000000;
|
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);
|
av_free(title);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user