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

Commit c0f79de1 authored by Oliver Woodman's avatar Oliver Woodman Committed by Android (Google) Code Review
Browse files

Merge "Avoid unnecessary object allocation in CryptoInfo.set"

parents 4906aff6 5f5ec7b8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2440,6 +2440,8 @@ final public class MediaCodec {
            }
        };

        private final Pattern zeroPattern = new Pattern(0, 0);

        /**
         * The pattern applicable to the protected data in each subsample.
         */
@@ -2462,7 +2464,7 @@ final public class MediaCodec {
            key = newKey;
            iv = newIV;
            mode = newMode;
            pattern = new Pattern(0, 0);
            pattern = zeroPattern;
        }

        /**