Temporary hack to deal with some mkv files while a proper fix is discussed.

Originally committed to SVN as r1739.
This commit is contained in:
Rodrigo Braz Monteiro 2008-01-16 02:46:36 +00:00
parent b0d0c01b93
commit cee3ed931a

View file

@ -250,6 +250,7 @@ void MatroskaWrapper::SetToTimecodes(FrameRate &target) {
//std::sort<std::vector<double>::iterator>(timecodes.begin(),timecodes.end()); //std::sort<std::vector<double>::iterator>(timecodes.begin(),timecodes.end());
// Check if it's CFR // Check if it's CFR
/*
bool isCFR = true; bool isCFR = true;
double estimateCFR = timecodes.back() / (timecodes.size()-1); double estimateCFR = timecodes.back() / (timecodes.size()-1);
double t1,t2; double t1,t2;
@ -262,6 +263,9 @@ void MatroskaWrapper::SetToTimecodes(FrameRate &target) {
break; break;
} }
} }
*/
bool isCFR = false;
double estimateCFR = 0;
// Constant framerate // Constant framerate
if (isCFR) { if (isCFR) {