From a7119c2dc7d1ab71b55b7a0cd33f70b17e571378 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Thu, 23 Mar 2017 02:43:39 +0000 Subject: [PATCH] Fix warnings --- lib/PlaYUVerFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PlaYUVerFrame.cpp b/lib/PlaYUVerFrame.cpp index 3d828d9..2c1d7f9 100644 --- a/lib/PlaYUVerFrame.cpp +++ b/lib/PlaYUVerFrame.cpp @@ -1316,7 +1316,7 @@ Double PlaYUVerFrame::getMSE( PlaYUVerFrame* Org, Int component ) Double PlaYUVerFrame::getPSNR( PlaYUVerFrame* Org, Int component ) { - UInt uiMaxValue = ( 1 << Org->getBitsPel() - 1 ); + UInt uiMaxValue = ( 1 << Org->getBitsPel() ) - 1; Double uiMaxValueSquare = uiMaxValue * uiMaxValue; Double dPSNR = 100; Double dMSE = getMSE( Org, component );