From cd4138d66acb8ef762c51f836c949e49282a46cb Mon Sep 17 00:00:00 2001 From: Gauthier Bouilhol Date: Wed, 29 Feb 2012 18:52:09 +0100 Subject: [PATCH] small correction for BitRateTolerance --- vv/vvMainWindow.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index a8b90bf..9fdcde4 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -2786,8 +2786,8 @@ void vvMainWindow::SaveScreenshot(QVTKWidget *widget) tr("FPS:"), 5, 0, 1024, 1, &ok); if(!ok) fps = 5; - mpg->SetRate(fps); - mpg->SetBitRateTolerance(round(12*1024*1024/fps+1)); + mpg->SetRate(fps); + mpg->SetBitRateTolerance(int(ceil(12.0*1024*1024/fps))); mpg->Start(); vvImage * vvImg = mSlicerManagers[smIndex]->GetImage(); -- 2.47.1