NativeCryptoInfo: fix ctor invocation

Bug: 289482631
Test: MediaDrmCodecBlockModelTest#testDecodeShortEncryptedVideo
Change-Id: Ie18af20c2dbc2f51a0ffd83d6642d13c79b08b9f
This commit is contained in:
Robert Shih
2023-07-11 07:27:02 +00:00
parent 6cc598239e
commit fe3785c3ff

View File

@@ -2491,7 +2491,7 @@ static void android_media_MediaCodec_native_queueLinearBlock(
return;
}
auto cryptoInfo =
cryptoInfoObj ? NativeCryptoInfo{size} : NativeCryptoInfo{env, cryptoInfoObj};
cryptoInfoObj ? NativeCryptoInfo{env, cryptoInfoObj} : NativeCryptoInfo{size};
if (env->ExceptionCheck()) {
// Creation of cryptoInfo failed. Let the exception bubble up.
return;