package defpackage;

import java.util.List;

/* renamed from: ᵝˑᵦ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2901 {

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final InterfaceC2154[] f11264;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final /* synthetic */ int f11265;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final List f11266;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final C1611 f11267;

    public C2901(int i, List list) {
        this.f11265 = i;
        switch (i) {
            case 1:
                this.f11266 = list;
                this.f11264 = new InterfaceC2154[list.size()];
                C1611 c1611 = new C1611((InterfaceC2537) new ᵶﾞᴵ(24, this));
                this.f11267 = c1611;
                c1611.m4614(3);
                break;
            default:
                this.f11266 = list;
                this.f11264 = new InterfaceC2154[list.size()];
                this.f11267 = new C1611((InterfaceC2537) new ᵶﾞᴵ(14, this));
                break;
        }
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public void m7070(long j, C3493 c3493) {
        if (c3493.m7959() < 9) {
            return;
        }
        int iM7965 = c3493.m7965();
        int iM79652 = c3493.m7965();
        int iM7956 = c3493.m7956();
        if (iM7965 == 434 && iM79652 == 1195456820 && iM7956 == 3) {
            this.f11267.m4613(j, c3493);
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void m7071(InterfaceC1982 interfaceC1982, C4996 c4996) {
        int i = this.f11265;
        List list = this.f11266;
        InterfaceC2154[] interfaceC2154Arr = this.f11264;
        switch (i) {
            case 0:
                for (int i2 = 0; i2 < interfaceC2154Arr.length; i2++) {
                    c4996.m10451();
                    c4996.m10452();
                    InterfaceC2154 interfaceC2154Mo4996 = interfaceC1982.mo4996(c4996.f18548, 3);
                    C3446 c3446 = (C3446) list.get(i2);
                    String str = c3446.f12929;
                    ᵛᵾˏ.ᵳٴᵶ("application/cea-608".equals(str) || "application/cea-708".equals(str), "Invalid closed caption MIME type provided: %s", str);
                    String str2 = c3446.f12922;
                    if (str2 == null) {
                        c4996.m10452();
                        str2 = c4996.f18544;
                    }
                    C2153 c2153 = new C2153();
                    c2153.f8512 = str2;
                    c2153.f8518 = AbstractC2924.m7101("video/mp2t");
                    c2153.f8516 = AbstractC2924.m7101(str);
                    c2153.f8492 = c3446.f12901;
                    c2153.f8527 = c3446.f12937;
                    c2153.f8491 = c3446.f12940;
                    c2153.f8506 = c3446.f12933;
                    AbstractC4737.m10004(c2153, interfaceC2154Mo4996);
                    interfaceC2154Arr[i2] = interfaceC2154Mo4996;
                }
                break;
            default:
                for (int i3 = 0; i3 < interfaceC2154Arr.length; i3++) {
                    c4996.m10451();
                    c4996.m10452();
                    InterfaceC2154 interfaceC2154Mo49962 = interfaceC1982.mo4996(c4996.f18548, 3);
                    C3446 c34462 = (C3446) list.get(i3);
                    String str3 = c34462.f12929;
                    ᵛᵾˏ.ᵳٴᵶ("application/cea-608".equals(str3) || "application/cea-708".equals(str3), "Invalid closed caption MIME type provided: %s", str3);
                    C2153 c21532 = new C2153();
                    c4996.m10452();
                    c21532.f8512 = c4996.f18544;
                    c21532.f8518 = AbstractC2924.m7101("video/mp2t");
                    c21532.f8516 = AbstractC2924.m7101(str3);
                    c21532.f8492 = c34462.f12901;
                    c21532.f8527 = c34462.f12937;
                    c21532.f8491 = c34462.f12940;
                    c21532.f8506 = c34462.f12933;
                    AbstractC4737.m10004(c21532, interfaceC2154Mo49962);
                    interfaceC2154Arr[i3] = interfaceC2154Mo49962;
                }
                break;
        }
    }
}
