simplify rounding

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13034 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
wight 2004-08-17 10:12:49 +00:00
parent 5d0ef7e22f
commit 76a67731fc
1 changed files with 1 additions and 3 deletions

View File

@ -5,9 +5,7 @@ use POSIX;
sub round { sub round {
my $v = shift; my $v = shift;
return floor($v + 0.5) != floor($v) ? return floor($v + 0.5);
floor($v + 0.5) :
floor($v);
} }
$raw_aspect = 720/576; $raw_aspect = 720/576;