From: Gauthier Bouilhol Date: Wed, 29 Feb 2012 17:52:09 +0000 (+0100) Subject: small correction for BitRateTolerance X-Git-Tag: v1.3.0~77^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=cd4138d66acb8ef762c51f836c949e49282a46cb;p=clitk.git small correction for BitRateTolerance --- 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();