package I0;

import android.media.MediaCodec;

/* JADX INFO: loaded from: classes.dex */
public class p extends A0.f {

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final int f3233q;

    public p(IllegalStateException illegalStateException, q qVar) {
        StringBuilder sb = new StringBuilder("Decoder failed: ");
        sb.append(qVar == null ? null : qVar.f3234a);
        super(sb.toString(), illegalStateException);
        boolean z8 = illegalStateException instanceof MediaCodec.CodecException;
        this.f3233q = x0.v.f18553a >= 23 ? z8 ? ((MediaCodec.CodecException) illegalStateException).getErrorCode() : 0 : x0.v.w(z8 ? ((MediaCodec.CodecException) illegalStateException).getDiagnosticInfo() : null);
    }
}
