]> Creatis software - clitk.git/commitdiff
small correction for BitRateTolerance
authorGauthier Bouilhol <bouilhol@creatis.insa-lyon.fr>
Wed, 29 Feb 2012 17:52:09 +0000 (18:52 +0100)
committerGauthier Bouilhol <bouilhol@creatis.insa-lyon.fr>
Wed, 29 Feb 2012 17:52:09 +0000 (18:52 +0100)
vv/vvMainWindow.cxx

index a8b90bf5b0e32b40abba9f7f6cc5c312e9322509..9fdcde45dc23d0aefff2d9b5bdc1dafc330cf884 100644 (file)
@@ -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();