package defpackage;

import androidx.media3.common.ParserException;
import java.util.HashMap;
import java.util.Locale;

/* renamed from: ᵬᵾᵫ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4083 {

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public String f15270;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final String f15272;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public String f15273;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final String f15274;

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

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public String f15276;

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

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final HashMap f15269 = new HashMap();

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public int f15271 = -1;

    public C4083(int i, int i2, String str, String str2) {
        this.f15274 = str;
        this.f15275 = i;
        this.f15272 = str2;
        this.f15277 = i2;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static String m8945(int i, int i2, int i3, String str) {
        String str2 = AbstractC3558.f13329;
        Locale locale = Locale.US;
        StringBuilder sb = new StringBuilder();
        sb.append(i);
        sb.append(" ");
        sb.append(str);
        sb.append("/");
        sb.append(i2);
        return AbstractC4486.m9556(sb, "/", i3);
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final C5431 m8946() throws NumberFormatException {
        String strM8945;
        C1425 c1425M4329;
        HashMap map = this.f15269;
        try {
            if (map.containsKey("rtpmap")) {
                String str = (String) map.get("rtpmap");
                String str2 = AbstractC3558.f13329;
                c1425M4329 = C1425.m4329(str);
            } else {
                int i = this.f15277;
                ᵛᵾˏ.ᵯٴᵦ(i < 96);
                if (i == 0) {
                    strM8945 = m8945(0, 8000, 1, "PCMU");
                } else if (i == 8) {
                    strM8945 = m8945(8, 8000, 1, "PCMA");
                } else if (i == 10) {
                    strM8945 = m8945(10, 44100, 2, "L16");
                } else if (i == 11) {
                    strM8945 = m8945(11, 44100, 1, "L16");
                } else {
                    ᵹˉᵞ.ᵳٴᵶ(AbstractC2990.m7313(i, "Unsupported static paylod type "));
                    strM8945 = null;
                }
                c1425M4329 = C1425.m4329(strM8945);
            }
            return new C5431(this, AbstractC1530.m4456(map), c1425M4329);
        } catch (ParserException e) {
            C2707.m6713(e);
            return null;
        }
    }
}
