package com.google.android.gms.internal.ads; import android.media.MediaCodec; import androidx.annotation.Nullable; /* loaded from: classes3.dex */ public final class zzhe { @Nullable public byte[] zza; @Nullable public byte[] zzb; public int zzc; @Nullable public int[] zzd; @Nullable public int[] zze; public int zzf; public int zzg; public int zzh; private final MediaCodec.CryptoInfo zzi; @Nullable private final zzhc zzj; public zzhe() { MediaCodec.CryptoInfo cryptoInfo = new MediaCodec.CryptoInfo(); this.zzi = cryptoInfo; this.zzj = zzei.zza >= 24 ? new zzhc(cryptoInfo, null) : null; } public final MediaCodec.CryptoInfo zza() { return this.zzi; } public final void zzb(int i) { if (i == 0) { return; } if (this.zzd == null) { int[] iArr = new int[1]; this.zzd = iArr; this.zzi.numBytesOfClearData = iArr; } int[] iArr2 = this.zzd; iArr2[0] = iArr2[0] + i; } public final void zzc(int i, int[] iArr, int[] iArr2, byte[] bArr, byte[] bArr2, int i2, int i3, int i4) { this.zzf = i; this.zzd = iArr; this.zze = iArr2; this.zzb = bArr; this.zza = bArr2; this.zzc = i2; this.zzg = i3; this.zzh = i4; MediaCodec.CryptoInfo cryptoInfo = this.zzi; cryptoInfo.numSubSamples = i; cryptoInfo.numBytesOfClearData = iArr; cryptoInfo.numBytesOfEncryptedData = iArr2; cryptoInfo.key = bArr; cryptoInfo.iv = bArr2; cryptoInfo.mode = i2; if (zzei.zza >= 24) { zzhc zzhcVar = this.zzj; zzhcVar.getClass(); zzhc.zza(zzhcVar, i3, i4); } } }