NativeCryptoInfo: fix ctor invocation

( cherry picked from aosp/2652628 )

Bug: 289482631
Test: MediaDrmCodecBlockModelTest#testDecodeShortEncryptedVideo
Merged-In: Ie18af20c2dbc2f51a0ffd83d6642d13c79b08b9f
Change-Id: Ie18af20c2dbc2f51a0ffd83d6642d13c79b08b9f
This commit is contained in:
Robert Shih
2023-07-19 16:49:02 +00:00
parent 5c4c8a076a
commit dbb0885b75

View File

@@ -2615,7 +2615,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;