package J0;

import d1.C0763b;
import d5.AbstractC0844a;
import g1.C0970a;
import h1.h;
import j1.C1065c;
import n4.u0;
import u0.C1579o;

/* JADX INFO: loaded from: classes.dex */
public final class a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final a f3445a = new a();

    public final u0 a(C1579o c1579o) {
        String str = c1579o.f17358n;
        if (str != null) {
            switch (str) {
                case "application/vnd.dvb.ait":
                    return new C0763b(0);
                case "application/x-icy":
                    return new C0970a();
                case "application/id3":
                    return new h(null);
                case "application/x-emsg":
                    return new C0763b(1);
                case "application/x-scte35":
                    return new C1065c();
            }
        }
        throw new IllegalArgumentException(AbstractC0844a.x("Attempted to create decoder for unsupported MIME type: ", str));
    }

    public final boolean b(C1579o c1579o) {
        String str = c1579o.f17358n;
        return "application/id3".equals(str) || "application/x-emsg".equals(str) || "application/x-scte35".equals(str) || "application/x-icy".equals(str) || "application/vnd.dvb.ait".equals(str);
    }
}
