ffmpeg: Use unsigned integers for chapter data

This commit is contained in:
Barrett17 2018-12-27 12:23:08 +01:00
parent e98351d3bc
commit e0a0f13051

View File

@ -1577,10 +1577,10 @@ AVFormatReader::GetMetaData(BMetaData* data)
for (unsigned i = 0; i < context->nb_chapters; i++) {
AVChapter* chapter = context->chapters[i];
BMetaData chapterData;
chapterData.SetInt64(kChapterStart, bigtime_t(1000000.0
chapterData.SetUInt64(kChapterStart, bigtime_t(1000000.0
* chapter->start * chapter->time_base.num
/ chapter->time_base.den + 0.5));
chapterData.SetInt64(kChapterEnd, bigtime_t(1000000.0
chapterData.SetUInt64(kChapterEnd, bigtime_t(1000000.0
* chapter->end * chapter->time_base.num
/ chapter->time_base.den + 0.5));