Fix (?) a bug that caused VFR transformation export to be broken, which also affected certain video providers when external timecodes were used.

Originally committed to SVN as r3542.
This commit is contained in:
Karl Blomster 2009-09-20 20:45:54 +00:00
parent 57d549f538
commit 3edb446bec

View file

@ -278,7 +278,11 @@ void AssTransformFramerateFilter::TransformFrameRate(AssFile *subs) {
AssDialogue *curDialogue;
for (entryIter cur=subs->Line.begin();cur!=subs->Line.end();cur++) {
curEntry = *cur;
curEntry->SetStartMS(Input->GetTimeAtFrame(Output->GetFrameAtTime(curEntry->GetStartMS(),true),true));
// why the christ was this ever done to begin with?
// yes, let's framerate compensate the start timestamp and then use the changed value to
// compensate it AGAIN 20 lines down? I DO NOT GET IT
// -Fluff
//curEntry->SetStartMS(Input->GetTimeAtFrame(Output->GetFrameAtTime(curEntry->GetStartMS(),true),true));
curDialogue = AssEntry::GetAsDialogue(curEntry);
// Update dialogue entries