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

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

am 7c86f4df: am cdd81636: am 29bac774: am 9090d3c3: am 02022b70: Merge "media:...

am 7c86f4df: am cdd81636: am 29bac774: am 9090d3c3: am 02022b70: Merge "media: fix estimateFrameRatesFor to use correct ratio" into mnc-dev

* commit '7c86f4df':
  media: fix estimateFrameRatesFor to use correct ratio
parents b980bff0 7c86f4df
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);
        }