package com.applovin.impl; import android.media.MediaCodec; /* loaded from: classes.dex */ public final class a5 { public byte[] a; public byte[] b; public int c; public int[] d; public int[] e; public int f; public int g; public int h; private final MediaCodec.CryptoInfo i; private final b j; public MediaCodec.CryptoInfo a() { return this.i; } /* JADX WARN: Multi-variable type inference failed */ public a5() { MediaCodec.CryptoInfo cryptoInfo = new MediaCodec.CryptoInfo(); this.i = cryptoInfo; this.j = xp.a >= 24 ? new b(cryptoInfo) : null; } public static final class b { private final MediaCodec.CryptoInfo a; private final MediaCodec.CryptoInfo.Pattern b; private b(MediaCodec.CryptoInfo cryptoInfo) { this.a = cryptoInfo; this.b = new MediaCodec.CryptoInfo.Pattern(0, 0); } /* JADX INFO: Access modifiers changed from: private */ public void a(int i, int i2) { this.b.set(i, i2); this.a.setPattern(this.b); } } public void a(int i) { if (i == 0) { return; } if (this.d == null) { int[] iArr = new int[1]; this.d = iArr; this.i.numBytesOfClearData = iArr; } int[] iArr2 = this.d; iArr2[0] = iArr2[0] + i; } public void a(int i, int[] iArr, int[] iArr2, byte[] bArr, byte[] bArr2, int i2, int i3, int i4) { this.f = i; this.d = iArr; this.e = iArr2; this.b = bArr; this.a = bArr2; this.c = i2; this.g = i3; this.h = i4; MediaCodec.CryptoInfo cryptoInfo = this.i; cryptoInfo.numSubSamples = i; cryptoInfo.numBytesOfClearData = iArr; cryptoInfo.numBytesOfEncryptedData = iArr2; cryptoInfo.key = bArr; cryptoInfo.iv = bArr2; cryptoInfo.mode = i2; if (xp.a >= 24) { ((b) b1.a(this.j)).a(i3, i4); } } }