From 3edb446bec32782c3fe5179d7cd20bc9c89fc40c Mon Sep 17 00:00:00 2001 From: Karl Blomster Date: Sun, 20 Sep 2009 20:45:54 +0000 Subject: [PATCH] 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. --- aegisub/src/export_framerate.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aegisub/src/export_framerate.cpp b/aegisub/src/export_framerate.cpp index b2885d998..63d69404c 100644 --- a/aegisub/src/export_framerate.cpp +++ b/aegisub/src/export_framerate.cpp @@ -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