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

Commit 1c436bd9 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

media: allow feature-can-swap-width-height to be optional.

We have enabled this only optionally in media_codecs.xml

Bug: 21568607
Change-Id: I11a12883afc051ba8c479255acc59388fb9a6722
parent 9d543ebf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1382,7 +1382,7 @@ public final class MediaCodecInfo {
            // upper limit.
            // for now we are keeping the profile specific "width/height
            // in macroblocks" limits.
            if (Integer.valueOf(1).equals(map.get("feature-can-swap-width-height"))) {
            if (map.containsKey("feature-can-swap-width-height")) {
                if (widths != null) {
                    mSmallerDimensionUpperLimit =
                        Math.min(widths.getUpper(), heights.getUpper());