91快播 v3.3.0版本的 MD5 值为:094b9519ad2388a8147509cb8a126145
以下内容为反编译后的 C10223.java 源代码,内容仅作参考
package anta.㺜;
import android.util.Pair;
import android.util.SparseArray;
import android.util.SparseIntArray;
import anta.ੳ.InterfaceC1621;
import anta.ச.C1804;
import anta.ዚ.C3145;
import anta.ዚ.C3170;
import anta.ዚ.C3186;
import anta.ዚ.C3198;
import anta.ዚ.C3202;
import anta.ዚ.InterfaceC3147;
import anta.ዚ.InterfaceC3187;
import anta.ዚ.InterfaceC3200;
import anta.ዚ.InterfaceC3206;
import anta.Ꮩ.C3335;
import anta.ᕐ.C3737;
import anta.ᕐ.C3777;
import anta.ỹ.InterfaceC5657;
import anta.ỹ.InterfaceC5663;
import anta.⁀.C5899;
import anta.⁀.InterfaceC5897;
import anta.⁀.InterfaceC5900;
import anta.⁀.InterfaceC5915;
import anta.㘥.C7435;
import anta.㠬.AbstractC7944;
import anta.㠬.C7941;
import anta.㠬.C7948;
import anta.㠬.C7956;
import anta.㠬.C7958;
import anta.㠬.C7961;
import anta.㴚.C9583;
import anta.㺜.C10225;
import anta.㺜.InterfaceC10220;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.IdentityHashMap;
import java.util.List;
import java.util.Objects;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public final class C10223 implements InterfaceC3187, InterfaceC3200.InterfaceC3201<C9583<InterfaceC10220>>, C9583.InterfaceC9585<InterfaceC10220> {
public final C5899 f22922;
public int f22923;
public final InterfaceC5663 f22924;
public final C10224[] f22925;
public final C3186 f22926;
public final C3145 f22927;
public C7956 f22928;
public InterfaceC3187.InterfaceC3188 f22929;
public final InterfaceC5657.C5658 f22930;
public final InterfaceC5915 f22931;
public final long f22933;
public InterfaceC3200 f22934;
public final InterfaceC3206.C3207 f22935;
public final InterfaceC5900 f22936;
public final C10225 f22937;
public final InterfaceC5897 f22938;
public List<C7948> f22939;
public final int f22940;
public final InterfaceC10220.InterfaceC10221 f22943;
public static final Pattern f22921 = Pattern.compile("CC([1-4])=(.+)");
public static final Pattern f22920 = Pattern.compile("([1-4])=lang:(\\w+)(,.+)?");
public C9583<InterfaceC10220>[] f22942 = new C9583[0];
public C10222[] f22932 = new C10222[0];
public final IdentityHashMap<C9583<InterfaceC10220>, C10225.C10227> f22941 = new IdentityHashMap<>();
public static final class C10224 {
public final int[] f22944;
public final int f22945;
public final int f22946;
public final int f22947;
public final int f22948;
public final int f22949;
public final int f22950;
public C10224(int i, int i2, int[] iArr, int i3, int i4, int i5, int i6) {
this.f22947 = i;
this.f22944 = iArr;
this.f22945 = i2;
this.f22946 = i3;
this.f22949 = i4;
this.f22950 = i5;
this.f22948 = i6;
}
}
public C10223(int i, C7956 c7956, int i2, InterfaceC10220.InterfaceC10221 interfaceC10221, InterfaceC5897 interfaceC5897, InterfaceC5663 interfaceC5663, InterfaceC5657.C5658 c5658, InterfaceC5915 interfaceC5915, InterfaceC3206.C3207 c3207, long j, InterfaceC5900 interfaceC5900, C5899 c5899, C3186 c3186, C10225.InterfaceC10228 interfaceC10228) {
List<C7941> list;
int i3;
int i4;
boolean z;
C3737[] c3737Arr;
C7958 m8811;
InterfaceC5663 interfaceC56632 = interfaceC5663;
this.f22940 = i;
this.f22928 = c7956;
this.f22923 = i2;
this.f22943 = interfaceC10221;
this.f22938 = interfaceC5897;
this.f22924 = interfaceC56632;
this.f22930 = c5658;
this.f22931 = interfaceC5915;
this.f22935 = c3207;
this.f22933 = j;
this.f22936 = interfaceC5900;
this.f22922 = c5899;
this.f22926 = c3186;
this.f22937 = new C10225(c7956, interfaceC10228, c5899);
int i5 = 0;
C9583<InterfaceC10220>[] c9583Arr = this.f22942;
Objects.requireNonNull(c3186);
this.f22934 = new C3198(c9583Arr);
C7961 c7961 = c7956.f17759.get(i2);
List<C7948> list2 = c7961.f17788;
this.f22939 = list2;
List<C7941> list3 = c7961.f17786;
int size = list3.size();
SparseIntArray sparseIntArray = new SparseIntArray(size);
ArrayList arrayList = new ArrayList(size);
SparseArray sparseArray = new SparseArray(size);
for (int i6 = 0; i6 < size; i6++) {
sparseIntArray.put(list3.get(i6).f17709, i6);
ArrayList arrayList2 = new ArrayList();
arrayList2.add(Integer.valueOf(i6));
arrayList.add(arrayList2);
sparseArray.put(i6, arrayList2);
}
for (int i7 = 0; i7 < size; i7++) {
C7941 c7941 = list3.get(i7);
C7958 m88112 = m8811(c7941.f17711, "http://dashif.org/guidelines/trickmode");
m88112 = m88112 == null ? m8811(c7941.f17714, "http://dashif.org/guidelines/trickmode") : m88112;
int i8 = (m88112 == null || (i8 = sparseIntArray.get(Integer.parseInt(m88112.f17779), -1)) == -1) ? i7 : i8;
if (i8 == i7 && (m8811 = m8811(c7941.f17714, "urn:mpeg:dash:adaptation-set-switching:2016")) != null) {
for (String str : C3335.m3494(m8811.f17779, ",")) {
int i9 = sparseIntArray.get(Integer.parseInt(str), -1);
if (i9 != -1) {
i8 = Math.min(i8, i9);
}
}
}
if (i8 != i7) {
List list4 = (List) sparseArray.get(i7);
List list5 = (List) sparseArray.get(i8);
list5.addAll(list4);
sparseArray.put(i7, list5);
arrayList.remove(list4);
}
}
int size2 = arrayList.size();
int[][] iArr = new int[size2];
for (int i10 = 0; i10 < size2; i10++) {
iArr[i10] = C7435.m6441((Collection) arrayList.get(i10));
Arrays.sort(iArr[i10]);
}
boolean[] zArr = new boolean[size2];
C3737[][] c3737Arr2 = new C3737[size2];
int i11 = 0;
int i12 = 0;
while (i11 < size2) {
int[] iArr2 = iArr[i11];
int length = iArr2.length;
int i13 = i5;
while (true) {
if (i13 >= length) {
z = false;
break;
}
List<AbstractC7944> list6 = list3.get(iArr2[i13]).f17710;
while (i5 < list6.size()) {
if (!list6.get(i5).f17731.isEmpty()) {
z = true;
break;
}
i5++;
}
i13++;
i5 = 0;
}
if (z) {
zArr[i11] = true;
i12++;
}
int[] iArr3 = iArr[i11];
int length2 = iArr3.length;
int i14 = 0;
while (true) {
if (i14 >= length2) {
c3737Arr = new C3737[0];
break;
}
int i15 = iArr3[i14];
C7941 c79412 = list3.get(i15);
List<C7958> list7 = list3.get(i15).f17713;
int[] iArr4 = iArr3;
int i16 = 0;
while (i16 < list7.size()) {
C7958 c7958 = list7.get(i16);
int i17 = length2;
List<C7958> list8 = list7;
if ("urn:scte:dash:cc:cea-608:2015".equals(c7958.f17777)) {
C3737.C3739 c3739 = new C3737.C3739();
c3739.f9347 = "application/cea-608";
int i18 = c79412.f17709;
StringBuilder sb = new StringBuilder(18);
sb.append(i18);
sb.append(":cea608");
c3739.f9331 = sb.toString();
c3737Arr = m8812(c7958, f22921, c3739.m3954());
break;
} else if ("urn:scte:dash:cc:cea-708:2015".equals(c7958.f17777)) {
C3737.C3739 c37392 = new C3737.C3739();
c37392.f9347 = "application/cea-708";
int i19 = c79412.f17709;
StringBuilder sb2 = new StringBuilder(18);
sb2.append(i19);
sb2.append(":cea708");
c37392.f9331 = sb2.toString();
c3737Arr = m8812(c7958, f22920, c37392.m3954());
break;
} else {
i16++;
length2 = i17;
list7 = list8;
}
}
i14++;
iArr3 = iArr4;
}
c3737Arr2[i11] = c3737Arr;
if (c3737Arr2[i11].length != 0) {
i12++;
}
i11++;
i5 = 0;
}
int size3 = list2.size() + i12 + size2;
C3202[] c3202Arr = new C3202[size3];
C10224[] c10224Arr = new C10224[size3];
int i20 = 0;
int i21 = 0;
while (i20 < size2) {
int[] iArr5 = iArr[i20];
ArrayList arrayList3 = new ArrayList();
int length3 = iArr5.length;
int i22 = size2;
int i23 = 0;
while (i23 < length3) {
arrayList3.addAll(list3.get(iArr5[i23]).f17710);
i23++;
iArr = iArr;
}
int[][] iArr6 = iArr;
int size4 = arrayList3.size();
C3737[] c3737Arr3 = new C3737[size4];
int i24 = 0;
while (i24 < size4) {
int i25 = size4;
C3737 c3737 = ((AbstractC7944) arrayList3.get(i24)).f17727;
c3737Arr3[i24] = c3737.m3951(interfaceC56632.mo5312(c3737));
i24++;
size4 = i25;
arrayList3 = arrayList3;
}
C7941 c79413 = list3.get(iArr5[0]);
int i26 = i21 + 1;
if (zArr[i20]) {
list = list3;
i3 = i26;
i26++;
} else {
list = list3;
i3 = -1;
}
if (c3737Arr2[i20].length != 0) {
i4 = i26 + 1;
} else {
i4 = i26;
i26 = -1;
}
c3202Arr[i21] = new C3202(c3737Arr3);
c10224Arr[i21] = new C10224(c79413.f17712, 0, iArr5, i21, i3, i26, -1);
int i27 = -1;
if (i3 != -1) {
C3737.C3739 c37393 = new C3737.C3739();
int i28 = c79413.f17709;
StringBuilder sb3 = new StringBuilder(16);
sb3.append(i28);
sb3.append(":emsg");
c37393.f9331 = sb3.toString();
c37393.f9347 = "application/x-emsg";
c3202Arr[i3] = new C3202(c37393.m3954());
c10224Arr[i3] = new C10224(5, 1, iArr5, i21, -1, -1, -1);
i27 = -1;
}
if (i26 != i27) {
c3202Arr[i26] = new C3202(c3737Arr2[i20]);
c10224Arr[i26] = new C10224(3, 1, iArr5, i21, -1, -1, -1);
}
i20++;
size2 = i22;
iArr = iArr6;
interfaceC56632 = interfaceC5663;
i21 = i4;
list3 = list;
}
int i29 = 0;
while (i29 < list2.size()) {
C3737.C3739 c37394 = new C3737.C3739();
c37394.f9331 = list2.get(i29).m6893();
c37394.f9347 = "application/x-emsg";
c3202Arr[i21] = new C3202(c37394.m3954());
c10224Arr[i21] = new C10224(5, 2, new int[0], -1, -1, -1, i29);
i29++;
i21++;
}
Pair create = Pair.create(new C3145(c3202Arr), c10224Arr);
this.f22927 = (C3145) create.first;
this.f22925 = (C10224[]) create.second;
}
public static C7958 m8811(List<C7958> list, String str) {
for (int i = 0; i < list.size(); i++) {
C7958 c7958 = list.get(i);
if (str.equals(c7958.f17777)) {
return c7958;
}
}
return null;
}
public static C3737[] m8812(C7958 c7958, Pattern pattern, C3737 c3737) {
String str = c7958.f17779;
if (str == null) {
return new C3737[]{c3737};
}
int i = C3335.f8136;
String[] split = str.split(";", -1);
C3737[] c3737Arr = new C3737[split.length];
for (int i2 = 0; i2 < split.length; i2++) {
Matcher matcher = pattern.matcher(split[i2]);
if (!matcher.matches()) {
return new C3737[]{c3737};
}
int parseInt = Integer.parseInt(matcher.group(1));
C3737.C3739 m3952 = c3737.m3952();
String str2 = c3737.f9325;
StringBuilder sb = new StringBuilder(String.valueOf(str2).length() + 12);
sb.append(str2);
sb.append(":");
sb.append(parseInt);
m3952.f9331 = sb.toString();
m3952.f9337 = parseInt;
m3952.f9333 = matcher.group(2);
c3737Arr[i2] = m3952.m3954();
}
return c3737Arr;
}
@Override
public void mo3205(InterfaceC3187.InterfaceC3188 interfaceC3188, long j) {
this.f22929 = interfaceC3188;
interfaceC3188.mo3208(this);
}
@Override
public long mo3207(long j, C3777 c3777) {
C9583<InterfaceC10220>[] c9583Arr;
for (C9583<InterfaceC10220> c9583 : this.f22942) {
if (c9583.f21538 == 2) {
return c9583.f21528.mo5346(j, c3777);
}
}
return j;
}
@Override
public C3145 mo3209() {
return this.f22927;
}
@Override
public long mo3210() {
return this.f22934.mo3210();
}
@Override
public long mo3211(InterfaceC1621[] interfaceC1621Arr, boolean[] zArr, InterfaceC3147[] interfaceC3147Arr, boolean[] zArr2, long j) {
int i;
boolean z;
int[] iArr;
int i2;
int[] iArr2;
int i3;
C3202 c3202;
C3202 c32022;
int i4;
C10225.C10227 c10227;
InterfaceC1621[] interfaceC1621Arr2 = interfaceC1621Arr;
int[] iArr3 = new int[interfaceC1621Arr2.length];
int i5 = 0;
while (true) {
i = -1;
if (i5 >= interfaceC1621Arr2.length) {
break;
}
if (interfaceC1621Arr2[i5] != null) {
iArr3[i5] = this.f22927.m3184(interfaceC1621Arr2[i5].mo1676());
} else {
iArr3[i5] = -1;
}
i5++;
}
for (int i6 = 0; i6 < interfaceC1621Arr2.length; i6++) {
if (interfaceC1621Arr2[i6] == null || !zArr[i6]) {
if (interfaceC3147Arr[i6] instanceof C9583) {
((C9583) interfaceC3147Arr[i6]).m8402(this);
} else if (interfaceC3147Arr[i6] instanceof C9583.C9584) {
((C9583.C9584) interfaceC3147Arr[i6]).m8405();
}
interfaceC3147Arr[i6] = null;
}
}
int i7 = 0;
while (true) {
z = true;
boolean z2 = true;
if (i7 >= interfaceC1621Arr2.length) {
break;
}
if ((interfaceC3147Arr[i7] instanceof C3170) || (interfaceC3147Arr[i7] instanceof C9583.C9584)) {
int m8813 = m8813(i7, iArr3);
if (m8813 == -1) {
z2 = interfaceC3147Arr[i7] instanceof C3170;
} else if (!(interfaceC3147Arr[i7] instanceof C9583.C9584) || ((C9583.C9584) interfaceC3147Arr[i7]).f21544 != interfaceC3147Arr[m8813]) {
z2 = false;
}
if (!z2) {
if (interfaceC3147Arr[i7] instanceof C9583.C9584) {
((C9583.C9584) interfaceC3147Arr[i7]).m8405();
}
interfaceC3147Arr[i7] = null;
}
}
i7++;
}
InterfaceC3147[] interfaceC3147Arr2 = interfaceC3147Arr;
int i8 = 0;
while (i8 < interfaceC1621Arr2.length) {
InterfaceC1621 interfaceC1621 = interfaceC1621Arr2[i8];
if (interfaceC1621 == null) {
i2 = i8;
iArr2 = iArr3;
} else if (interfaceC3147Arr2[i8] == null) {
zArr2[i8] = z;
C10224 c10224 = this.f22925[iArr3[i8]];
int i9 = c10224.f22945;
if (i9 == 0) {
int i10 = c10224.f22949;
boolean z3 = i10 != i ? z ? 1 : 0 : false;
if (z3) {
c3202 = this.f22927.f7646[i10];
i3 = z ? 1 : 0;
} else {
i3 = 0;
c3202 = null;
}
int i11 = c10224.f22950;
Object[] objArr = i11 != i ? z ? 1 : 0 : null;
if (objArr != null) {
c32022 = this.f22927.f7646[i11];
i3 += c32022.f7865;
} else {
c32022 = null;
}
C3737[] c3737Arr = new C3737[i3];
int[] iArr4 = new int[i3];
if (z3) {
c3737Arr[0] = c3202.f7866[0];
iArr4[0] = 5;
i4 = z ? 1 : 0;
} else {
i4 = 0;
}
ArrayList arrayList = new ArrayList();
if (objArr != null) {
for (int i12 = 0; i12 < c32022.f7865; i12++) {
c3737Arr[i4] = c32022.f7866[i12];
iArr4[i4] = 3;
arrayList.add(c3737Arr[i4]);
i4 += z ? 1 : 0;
}
}
if (this.f22928.f17767 && z3) {
C10225 c10225 = this.f22937;
c10227 = new C10225.C10227(c10225.f22959);
} else {
c10227 = null;
}
i2 = i8;
iArr2 = iArr3;
C10225.C10227 c102272 = c10227;
C9583<InterfaceC10220> c9583 = new C9583<>(c10224.f22947, iArr4, c3737Arr, this.f22943.mo8808(this.f22936, this.f22928, this.f22923, c10224.f22944, interfaceC1621, c10224.f22947, this.f22933, z3, arrayList, c10227, this.f22938), this, this.f22922, j, this.f22924, this.f22930, this.f22931, this.f22935);
synchronized (this) {
this.f22941.put(c9583, c102272);
}
interfaceC3147Arr[i2] = c9583;
interfaceC3147Arr2 = interfaceC3147Arr;
} else {
i2 = i8;
iArr2 = iArr3;
if (i9 == 2) {
interfaceC3147Arr2[i2] = new C10222(this.f22939.get(c10224.f22948), interfaceC1621.mo1676().f7866[0], this.f22928.f17767);
}
}
} else {
i2 = i8;
iArr2 = iArr3;
if (interfaceC3147Arr2[i2] instanceof C9583) {
((InterfaceC10220) ((C9583) interfaceC3147Arr2[i2]).f21528).mo8806(interfaceC1621);
}
}
i8 = i2 + 1;
interfaceC1621Arr2 = interfaceC1621Arr;
iArr3 = iArr2;
z = true;
i = -1;
}
int[] iArr5 = iArr3;
int i13 = 0;
while (i13 < interfaceC1621Arr.length) {
if (interfaceC3147Arr2[i13] != null || interfaceC1621Arr[i13] == null) {
iArr = iArr5;
} else {
C10224 c102242 = this.f22925[iArr5[i13]];
if (c102242.f22945 == 1) {
iArr = iArr5;
int m88132 = m8813(i13, iArr);
if (m88132 == -1) {
interfaceC3147Arr2[i13] = new C3170();
} else {
C9583 c95832 = (C9583) interfaceC3147Arr2[m88132];
int i14 = c102242.f22947;
for (int i15 = 0; i15 < c95832.f21532.length; i15++) {
if (c95832.f21541[i15] == i14) {
C1804.m1910(!c95832.f21521[i15]);
c95832.f21521[i15] = true;
c95832.f21532[i15].m3225(j, true);
interfaceC3147Arr2[i13] = new C9583.C9584(c95832, c95832.f21532[i15], i15);
}
}
throw new IllegalStateException();
}
i13++;
iArr5 = iArr;
} else {
iArr = iArr5;
}
}
i13++;
iArr5 = iArr;
}
ArrayList arrayList2 = new ArrayList();
ArrayList arrayList3 = new ArrayList();
for (InterfaceC3147 interfaceC3147 : interfaceC3147Arr2) {
if (interfaceC3147 instanceof C9583) {
arrayList2.add((C9583) interfaceC3147);
} else if (interfaceC3147 instanceof C10222) {
arrayList3.add((C10222) interfaceC3147);
}
}
C9583<InterfaceC10220>[] c9583Arr = new C9583[arrayList2.size()];
this.f22942 = c9583Arr;
arrayList2.toArray(c9583Arr);
C10222[] c10222Arr = new C10222[arrayList3.size()];
this.f22932 = c10222Arr;
arrayList3.toArray(c10222Arr);
C3186 c3186 = this.f22926;
C9583<InterfaceC10220>[] c9583Arr2 = this.f22942;
Objects.requireNonNull(c3186);
this.f22934 = new C3198(c9583Arr2);
return j;
}
@Override
public long mo3212(long j) {
for (C9583<InterfaceC10220> c9583 : this.f22942) {
c9583.m8397(j);
}
for (C10222 c10222 : this.f22932) {
c10222.m8810(j);
}
return j;
}
@Override
public void mo3213(long j, boolean z) {
for (C9583<InterfaceC10220> c9583 : this.f22942) {
c9583.m8399(j, z);
}
}
@Override
public void mo3214(C9583<InterfaceC10220> c9583) {
this.f22929.mo3214(this);
}
@Override
public boolean mo3215() {
return this.f22934.mo3215();
}
@Override
public long mo3216() {
return this.f22934.mo3216();
}
@Override
public void mo3217() {
this.f22936.mo5523();
}
@Override
public long mo3218() {
return -9223372036854775807L;
}
@Override
public void mo3219(long j) {
this.f22934.mo3219(j);
}
@Override
public boolean mo3220(long j) {
return this.f22934.mo3220(j);
}
public final int m8813(int i, int[] iArr) {
int i2 = iArr[i];
if (i2 == -1) {
return -1;
}
int i3 = this.f22925[i2].f22946;
for (int i4 = 0; i4 < iArr.length; i4++) {
int i5 = iArr[i4];
if (i5 == i3 && this.f22925[i5].f22945 == 0) {
return i4;
}
}
return -1;
}
}