Skip to content
Snippets Groups Projects
Commit 1737a0a1 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

demux:mkv: explicitly turn chapter timestamps into mtime_t values

parent df043b5d
No related branches found
No related tags found
No related merge requests found
......@@ -1169,12 +1169,12 @@ void matroska_segment_c::ParseChapterAtom( int i_level, KaxChapterAtom *ca, chap
}
E_CASE( KaxChapterTimeStart, start )
{
vars.chapters.i_start_time = static_cast<uint64>( start ) / INT64_C(1000);
vars.chapters.i_start_time = static_cast<uint64>( start ) / (INT64_C(1000000000) / CLOCK_FREQ);
debug( vars, "ChapterTimeStart=%" PRId64, vars.chapters.i_start_time );
}
E_CASE( KaxChapterTimeEnd, end )
{
vars.chapters.i_end_time = static_cast<uint64>( end ) / INT64_C(1000);
vars.chapters.i_end_time = static_cast<uint64>( end ) / (INT64_C(1000000000) / CLOCK_FREQ);
debug( vars, "ChapterTimeEnd=%" PRId64, vars.chapters.i_end_time );
}
E_CASE( KaxChapterDisplay, chapter_display )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment