From: Carl Hetherington Date: Mon, 16 Nov 2020 22:58:53 +0000 (+0100) Subject: Add some lrintf() calls to be sure. X-Git-Tag: v2.14.43~3 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=451e5465bbd10827dafe76b35704102e589c0980;p=dcpomatic.git Add some lrintf() calls to be sure. --- diff --git a/src/lib/image.cc b/src/lib/image.cc index 61945e1c9..6becdea42 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -72,7 +72,7 @@ Image::vertical_factor (int n) const throw PixelFormatError ("line_factor()", _pixel_format); } - return pow (2.0f, d->log2_chroma_h); + return lrintf(powf(2.0f, d->log2_chroma_h)); } int @@ -87,7 +87,7 @@ Image::horizontal_factor (int n) const throw PixelFormatError ("sample_size()", _pixel_format); } - return pow (2.0f, d->log2_chroma_w); + return lrintf(powf(2.0f, d->log2_chroma_w)); } /** @param n Component index.