Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9090d3c3 authored by Ronghua Wu's avatar Ronghua Wu Committed by Android Git Automerger
Browse files

am 02022b70: Merge "media: fix estimateFrameRatesFor to use correct ratio" into mnc-dev

* commit '02022b70':
  media: fix estimateFrameRatesFor to use correct ratio
parents b7eb3901 02022b70
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1216,7 +1216,7 @@ public final class MediaCodecInfo {
        private Range<Double> estimateFrameRatesFor(int width, int height) {
            Size size = findClosestSize(width, height);
            Range<Long> range = mMeasuredFrameRates.get(size);
            Double ratio = (double)(width * height) / (size.getWidth() * size.getHeight());
            Double ratio = (double)(size.getWidth() * size.getHeight()) / (width * height);
            return Range.create(range.getLower() * ratio, range.getUpper() * ratio);
        }