mirror of https://github.com/mpv-player/mpv
simplify rounding
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13034 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5d0ef7e22f
commit
76a67731fc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue