diff --git a/src/common/chapters/dvd.cpp b/src/common/chapters/dvd.cpp index 9a259eeea..a298b3925 100644 --- a/src/common/chapters/dvd.cpp +++ b/src/common/chapters/dvd.cpp @@ -93,14 +93,14 @@ parse_dvd(std::string const &file_name) { cur_frames += ((dt->frame_u & 0x30) >> 4) * 10 + (dt->frame_u & 0x0f); } - auto factor = fps == 30 ? 1001ull : 1000ull; - timestamps.emplace_back(timestamp_c::ms(factor * overall_frames / fps)); + auto factor = fps == 30 ? 1001 : 1000; + timestamps.emplace_back(timestamp_c::ns(1000000ull * factor * overall_frames / fps)); overall_frames += cur_frames; } - auto factor = fps == 30 ? 1001ull : 1000ull; - timestamps.emplace_back(timestamp_c::ms(factor * overall_frames / fps)); + auto factor = fps == 30 ? 1001 : 1000; + timestamps.emplace_back(timestamp_c::ns(1000000ull * factor * overall_frames / fps)); } return titles_and_timestamps;