summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-10-27 16:08:33 +0000
committerRodeo <[email protected]>2012-10-27 16:08:33 +0000
commit369d79296ffb59639735bb3f3c4c988fc982a7ad (patch)
tree4c8942b5f2779f96dad463bbf3d929d755d994f9 /scripts
parent22fecad7bd73ace2b28deba8a71162ed2ed68860 (diff)
manicure: fix VideoFramerate.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5035 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/manicure.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/manicure.rb b/scripts/manicure.rb
index 36626363e..6b86f0a65 100755
--- a/scripts/manicure.rb
+++ b/scripts/manicure.rb
@@ -1023,8 +1023,9 @@ class Display
elsif hash["VideoFramerate"] == "29.97 (NTSC Video)"
commandString << "job->vrate_base = " << "900900;\n "
elsif hash["VideoFramerate"] == "25 (PAL Film/Video)"
- commandString << "job->vrate_base = " << "1080000\n "
- # Gotta add the rest of the framerates for completion's sake.
+ commandString << "job->vrate_base = " << "1080000;\n "
+ else
+ commandString << "job->vrate_base = " << (27000000 / hash["VideoFramerate"].to_i).to_s << ";\n "
end
# not same as source: pfr, else default (cfr)
if hash["VideoFramerateMode"] == "pfr"