Commit 0be98e2b by tonihei Committed by Oliver Woodman

Add stubs for CryptoInfo fields.

See https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo#numBytesOfClearData. Both values are allowed to be null.

PiperOrigin-RevId: 319038124
parent 0a2bacb7
...@@ -292,6 +292,8 @@ class AsynchronousMediaCodecBufferEnqueuer implements MediaCodecInputBufferEnque ...@@ -292,6 +292,8 @@ class AsynchronousMediaCodecBufferEnqueuer implements MediaCodecInputBufferEnque
} }
/** Performs a deep copy of {@code cryptoInfo} to {@code frameworkCryptoInfo}. */ /** Performs a deep copy of {@code cryptoInfo} to {@code frameworkCryptoInfo}. */
// TODO: Remove suppression [internal b/78934030].
@SuppressWarnings("nullness:argument.type.incompatible")
private static void copy( private static void copy(
CryptoInfo cryptoInfo, android.media.MediaCodec.CryptoInfo frameworkCryptoInfo) { CryptoInfo cryptoInfo, android.media.MediaCodec.CryptoInfo frameworkCryptoInfo) {
// Update frameworkCryptoInfo fields directly because CryptoInfo.set performs an unnecessary // Update frameworkCryptoInfo fields directly because CryptoInfo.set performs an unnecessary
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment