From 76a67731fc197f4597cb8f000fc89799daa113da Mon Sep 17 00:00:00 2001 From: wight Date: Tue, 17 Aug 2004 10:12:49 +0000 Subject: [PATCH] simplify rounding git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13034 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/calcbpp.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/TOOLS/calcbpp.pl b/TOOLS/calcbpp.pl index 34eb408e61..85fbb7a683 100755 --- a/TOOLS/calcbpp.pl +++ b/TOOLS/calcbpp.pl @@ -5,9 +5,7 @@ use POSIX; sub round { my $v = shift; - return floor($v + 0.5) != floor($v) ? - floor($v + 0.5) : - floor($v); + return floor($v + 0.5); } $raw_aspect = 720/576;