package com.google.android.gms.internal.ads;

import android.media.MediaCodec;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes2.dex */
public final class zzuq extends Exception {

    @Nullable
    public final String zza;
    public final boolean zzb;

    @Nullable
    public final tn2 zzc;

    @Nullable
    public final String zzd;

    public zzuq(zn2 zn2Var, @Nullable Throwable th, boolean z10, int i10) {
        String string = zn2Var.toString();
        StringBuilder sb = new StringBuilder(String.valueOf(i10).length() + 25 + string.length());
        sb.append("Decoder init failed: [");
        sb.append(i10);
        sb.append("], ");
        sb.append(string);
        String string2 = sb.toString();
        String str = zn2Var.zzo;
        int iAbs = Math.abs(i10);
        this(string2, th, str, false, null, defpackage.e.n(new StringBuilder(String.valueOf(iAbs).length() + 60), "androidx.media3.exoplayer.mediacodec.MediaCodecRenderer_neg_", iAbs), null);
    }

    public final /* synthetic */ zzuq a(zzuq zzuqVar) {
        return new zzuq(getMessage(), getCause(), this.zza, false, this.zzc, this.zzd, zzuqVar);
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public zzuq(zn2 zn2Var, @Nullable Throwable th, boolean z10, tn2 tn2Var) {
        String str = tn2Var.f16954a;
        int length = str.length();
        String string = zn2Var.toString();
        this(com.bytedance.sdk.component.adexpress.dynamic.dynamicview.b.h(new StringBuilder(length + 23 + string.length()), "Decoder init failed: ", str, ", ", string), th, zn2Var.zzo, false, tn2Var, th instanceof MediaCodec.CodecException ? ((MediaCodec.CodecException) th).getDiagnosticInfo() : null, null);
    }

    private zzuq(@Nullable String str, @Nullable Throwable th, @Nullable String str2, boolean z10, @Nullable tn2 tn2Var, @Nullable String str3, @Nullable zzuq zzuqVar) {
        super(str, th);
        this.zza = str2;
        this.zzb = false;
        this.zzc = tn2Var;
        this.zzd = str3;
    }
}
