Merge "Avoid unnecessary object allocation in CryptoInfo.set"

This commit is contained in:
Oliver Woodman
2017-03-29 20:09:20 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}
/**