Merge "Avoid unnecessary object allocation in CryptoInfo.set"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c0f79de1cf
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user