From cee3ed931a84bd9ba37471635cce7f37d2d6e76d Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Wed, 16 Jan 2008 02:46:36 +0000 Subject: [PATCH] Temporary hack to deal with some mkv files while a proper fix is discussed. Originally committed to SVN as r1739. --- aegisub/mkv_wrap.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aegisub/mkv_wrap.cpp b/aegisub/mkv_wrap.cpp index b2267a658..567be53b3 100644 --- a/aegisub/mkv_wrap.cpp +++ b/aegisub/mkv_wrap.cpp @@ -250,6 +250,7 @@ void MatroskaWrapper::SetToTimecodes(FrameRate &target) { //std::sort::iterator>(timecodes.begin(),timecodes.end()); // Check if it's CFR + /* bool isCFR = true; double estimateCFR = timecodes.back() / (timecodes.size()-1); double t1,t2; @@ -262,6 +263,9 @@ void MatroskaWrapper::SetToTimecodes(FrameRate &target) { break; } } + */ + bool isCFR = false; + double estimateCFR = 0; // Constant framerate if (isCFR) {