暗网解密 v2.0.4版本的 MD5 值为:d3a04548fef88e775cbe4c3c6e7d81ad
以下内容为反编译后的 f.java 源代码,内容仅作参考
package c.g.a.a.z2.u0;
import android.util.Pair;
import android.util.SparseArray;
import android.util.SparseIntArray;
import androidx.annotation.Nullable;
import c.g.a.a.d3.e0;
import c.g.a.a.d3.y;
import c.g.a.a.e3.r0;
import c.g.a.a.h2;
import c.g.a.a.s2.x;
import c.g.a.a.s2.z;
import c.g.a.a.z2.b0;
import c.g.a.a.z2.g0;
import c.g.a.a.z2.n0;
import c.g.a.a.z2.o0;
import c.g.a.a.z2.r;
import c.g.a.a.z2.t0.i;
import c.g.a.a.z2.u;
import c.g.a.a.z2.u0.e;
import c.g.a.a.z2.u0.l;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.source.TrackGroup;
import com.google.android.exoplayer2.source.TrackGroupArray;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.IdentityHashMap;
import java.util.Iterator;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public final class f implements b0, o0.a<c.g.a.a.z2.t0.i<e>>, i.b<e> {
public static final Pattern f4006a = Pattern.compile("CC([1-4])=(.+)");
public static final Pattern f4007b = Pattern.compile("([1-4])=lang:(\\w+)(,.+)?");
public final int f4008d;
public final e.a f4009e;
@Nullable
public final e0 f4010f;
public final z f4011g;
public final y f4012h;
public final d i;
public final long j;
public final c.g.a.a.d3.z k;
public final c.g.a.a.d3.e l;
public final TrackGroupArray m;
public final a[] n;
public final r o;
public final l p;
public final g0.a r;
public final x.a s;
@Nullable
public b0.a t;
public o0 w;
public c.g.a.a.z2.u0.m.c x;
public int y;
public List<c.g.a.a.z2.u0.m.f> z;
public c.g.a.a.z2.t0.i<e>[] u = E(0);
public k[] v = new k[0];
public final IdentityHashMap<c.g.a.a.z2.t0.i<e>, l.c> q = new IdentityHashMap<>();
public static final class a {
public final int[] f4013a;
public final int f4014b;
public final int f4015c;
public final int f4016d;
public final int f4017e;
public final int f4018f;
public final int f4019g;
public a(int i, int i2, int[] iArr, int i3, int i4, int i5, int i6) {
this.f4014b = i;
this.f4013a = iArr;
this.f4015c = i2;
this.f4017e = i3;
this.f4018f = i4;
this.f4019g = i5;
this.f4016d = i6;
}
public static a a(int[] iArr, int i) {
return new a(3, 1, iArr, i, -1, -1, -1);
}
public static a b(int[] iArr, int i) {
return new a(5, 1, iArr, i, -1, -1, -1);
}
public static a c(int i) {
return new a(5, 2, new int[0], -1, -1, -1, i);
}
public static a d(int i, int[] iArr, int i2, int i3, int i4) {
return new a(i, 0, iArr, i2, i3, i4, -1);
}
}
public f(int i, c.g.a.a.z2.u0.m.c cVar, d dVar, int i2, e.a aVar, @Nullable e0 e0Var, z zVar, x.a aVar2, y yVar, g0.a aVar3, long j, c.g.a.a.d3.z zVar2, c.g.a.a.d3.e eVar, r rVar, l.b bVar) {
this.f4008d = i;
this.x = cVar;
this.i = dVar;
this.y = i2;
this.f4009e = aVar;
this.f4010f = e0Var;
this.f4011g = zVar;
this.s = aVar2;
this.f4012h = yVar;
this.r = aVar3;
this.j = j;
this.k = zVar2;
this.l = eVar;
this.o = rVar;
this.p = new l(cVar, bVar, eVar);
this.w = rVar.a(this.u);
c.g.a.a.z2.u0.m.g d2 = cVar.d(i2);
List<c.g.a.a.z2.u0.m.f> list = d2.f4103d;
this.z = list;
Pair<TrackGroupArray, a[]> t = t(zVar, d2.f4102c, list);
this.m = (TrackGroupArray) t.first;
this.n = (a[]) t.second;
}
public static boolean C(List<c.g.a.a.z2.u0.m.a> list, int[] iArr) {
for (int i : iArr) {
List<c.g.a.a.z2.u0.m.j> list2 = list.get(i).f4064c;
for (int i2 = 0; i2 < list2.size(); i2++) {
if (!list2.get(i2).f4118e.isEmpty()) {
return true;
}
}
}
return false;
}
public static int D(int i, List<c.g.a.a.z2.u0.m.a> list, int[][] iArr, boolean[] zArr, Format[][] formatArr) {
int i2 = 0;
for (int i3 = 0; i3 < i; i3++) {
if (C(list, iArr[i3])) {
zArr[i3] = true;
i2++;
}
formatArr[i3] = y(list, iArr[i3]);
if (formatArr[i3].length != 0) {
i2++;
}
}
return i2;
}
public static c.g.a.a.z2.t0.i<e>[] E(int i) {
return new c.g.a.a.z2.t0.i[i];
}
public static Format[] G(c.g.a.a.z2.u0.m.e eVar, Pattern pattern, Format format) {
String str = eVar.f4093b;
if (str == null) {
return new Format[]{format};
}
String[] M0 = r0.M0(str, ";");
Format[] formatArr = new Format[M0.length];
for (int i = 0; i < M0.length; i++) {
Matcher matcher = pattern.matcher(M0[i]);
if (!matcher.matches()) {
return new Format[]{format};
}
int parseInt = Integer.parseInt(matcher.group(1));
Format.b d2 = format.d();
String str2 = format.f7727a;
StringBuilder sb = new StringBuilder(String.valueOf(str2).length() + 12);
sb.append(str2);
sb.append(":");
sb.append(parseInt);
formatArr[i] = d2.S(sb.toString()).F(parseInt).V(matcher.group(2)).E();
}
return formatArr;
}
public static void e(List<c.g.a.a.z2.u0.m.f> list, TrackGroup[] trackGroupArr, a[] aVarArr, int i) {
int i2 = 0;
while (i2 < list.size()) {
trackGroupArr[i] = new TrackGroup(new Format.b().S(list.get(i2).a()).e0("application/x-emsg").E());
aVarArr[i] = a.c(i2);
i2++;
i++;
}
}
public static int l(z zVar, List<c.g.a.a.z2.u0.m.a> list, int[][] iArr, int i, boolean[] zArr, Format[][] formatArr, TrackGroup[] trackGroupArr, a[] aVarArr) {
int i2;
int i3;
int i4 = 0;
int i5 = 0;
while (i4 < i) {
int[] iArr2 = iArr[i4];
ArrayList arrayList = new ArrayList();
for (int i6 : iArr2) {
arrayList.addAll(list.get(i6).f4064c);
}
int size = arrayList.size();
Format[] formatArr2 = new Format[size];
for (int i7 = 0; i7 < size; i7++) {
Format format = ((c.g.a.a.z2.u0.m.j) arrayList.get(i7)).f4115b;
formatArr2[i7] = format.e(zVar.c(format));
}
c.g.a.a.z2.u0.m.a aVar = list.get(iArr2[0]);
int i8 = i5 + 1;
if (zArr[i4]) {
i2 = i8 + 1;
} else {
i2 = i8;
i8 = -1;
}
if (formatArr[i4].length != 0) {
i3 = i2 + 1;
} else {
i3 = i2;
i2 = -1;
}
trackGroupArr[i5] = new TrackGroup(formatArr2);
aVarArr[i5] = a.d(aVar.f4063b, iArr2, i5, i8, i2);
if (i8 != -1) {
Format.b bVar = new Format.b();
int i9 = aVar.f4062a;
StringBuilder sb = new StringBuilder(16);
sb.append(i9);
sb.append(":emsg");
trackGroupArr[i8] = new TrackGroup(bVar.S(sb.toString()).e0("application/x-emsg").E());
aVarArr[i8] = a.b(iArr2, i5);
}
if (i2 != -1) {
trackGroupArr[i2] = new TrackGroup(formatArr[i4]);
aVarArr[i2] = a.a(iArr2, i5);
}
i4++;
i5 = i3;
}
return i5;
}
public static Pair<TrackGroupArray, a[]> t(z zVar, List<c.g.a.a.z2.u0.m.a> list, List<c.g.a.a.z2.u0.m.f> list2) {
int[][] z = z(list);
int length = z.length;
boolean[] zArr = new boolean[length];
Format[][] formatArr = new Format[length];
int D = D(length, list, z, zArr, formatArr) + length + list2.size();
TrackGroup[] trackGroupArr = new TrackGroup[D];
a[] aVarArr = new a[D];
e(list2, trackGroupArr, aVarArr, l(zVar, list, z, length, zArr, formatArr, trackGroupArr, aVarArr));
return Pair.create(new TrackGroupArray(trackGroupArr), aVarArr);
}
@Nullable
public static c.g.a.a.z2.u0.m.e v(List<c.g.a.a.z2.u0.m.e> list) {
return w(list, "urn:mpeg:dash:adaptation-set-switching:2016");
}
@Nullable
public static c.g.a.a.z2.u0.m.e w(List<c.g.a.a.z2.u0.m.e> list, String str) {
for (int i = 0; i < list.size(); i++) {
c.g.a.a.z2.u0.m.e eVar = list.get(i);
if (str.equals(eVar.f4092a)) {
return eVar;
}
}
return null;
}
@Nullable
public static c.g.a.a.z2.u0.m.e x(List<c.g.a.a.z2.u0.m.e> list) {
return w(list, "http://dashif.org/guidelines/trickmode");
}
public static Format[] y(List<c.g.a.a.z2.u0.m.a> list, int[] iArr) {
for (int i : iArr) {
c.g.a.a.z2.u0.m.a aVar = list.get(i);
List<c.g.a.a.z2.u0.m.e> list2 = list.get(i).f4065d;
for (int i2 = 0; i2 < list2.size(); i2++) {
c.g.a.a.z2.u0.m.e eVar = list2.get(i2);
if ("urn:scte:dash:cc:cea-608:2015".equals(eVar.f4092a)) {
Format.b e0 = new Format.b().e0("application/cea-608");
int i3 = aVar.f4062a;
StringBuilder sb = new StringBuilder(18);
sb.append(i3);
sb.append(":cea608");
return G(eVar, f4006a, e0.S(sb.toString()).E());
} else if ("urn:scte:dash:cc:cea-708:2015".equals(eVar.f4092a)) {
Format.b e02 = new Format.b().e0("application/cea-708");
int i4 = aVar.f4062a;
StringBuilder sb2 = new StringBuilder(18);
sb2.append(i4);
sb2.append(":cea708");
return G(eVar, f4007b, e02.S(sb2.toString()).E());
}
}
}
return new Format[0];
}
public static int[][] z(List<c.g.a.a.z2.u0.m.a> list) {
int i;
c.g.a.a.z2.u0.m.e v;
int size = list.size();
SparseIntArray sparseIntArray = new SparseIntArray(size);
ArrayList arrayList = new ArrayList(size);
SparseArray sparseArray = new SparseArray(size);
for (int i2 = 0; i2 < size; i2++) {
sparseIntArray.put(list.get(i2).f4062a, i2);
ArrayList arrayList2 = new ArrayList();
arrayList2.add(Integer.valueOf(i2));
arrayList.add(arrayList2);
sparseArray.put(i2, arrayList2);
}
for (int i3 = 0; i3 < size; i3++) {
c.g.a.a.z2.u0.m.a aVar = list.get(i3);
c.g.a.a.z2.u0.m.e x = x(aVar.f4066e);
if (x == null) {
x = x(aVar.f4067f);
}
if (x == null || (i = sparseIntArray.get(Integer.parseInt(x.f4093b), -1)) == -1) {
i = i3;
}
if (i == i3 && (v = v(aVar.f4067f)) != null) {
for (String str : r0.M0(v.f4093b, ",")) {
int i4 = sparseIntArray.get(Integer.parseInt(str), -1);
if (i4 != -1) {
i = Math.min(i, i4);
}
}
}
if (i != i3) {
List list2 = (List) sparseArray.get(i3);
List list3 = (List) sparseArray.get(i);
list3.addAll(list2);
sparseArray.put(i3, list3);
arrayList.remove(list2);
}
}
int size2 = arrayList.size();
int[][] iArr = new int[size2];
for (int i5 = 0; i5 < size2; i5++) {
iArr[i5] = c.g.b.d.c.j((Collection) arrayList.get(i5));
Arrays.sort(iArr[i5]);
}
return iArr;
}
public final int A(int i, int[] iArr) {
int i2 = iArr[i];
if (i2 == -1) {
return -1;
}
int i3 = this.n[i2].f4017e;
for (int i4 = 0; i4 < iArr.length; i4++) {
int i5 = iArr[i4];
if (i5 == i3 && this.n[i5].f4015c == 0) {
return i4;
}
}
return -1;
}
public final int[] B(c.g.a.a.b3.g[] gVarArr) {
int[] iArr = new int[gVarArr.length];
for (int i = 0; i < gVarArr.length; i++) {
if (gVarArr[i] != null) {
iArr[i] = this.m.e(gVarArr[i].a());
} else {
iArr[i] = -1;
}
}
return iArr;
}
@Override
public void i(c.g.a.a.z2.t0.i<e> iVar) {
this.t.i(this);
}
public void H() {
this.p.o();
for (c.g.a.a.z2.t0.i<e> iVar : this.u) {
iVar.Q(this);
}
this.t = null;
}
public final void I(c.g.a.a.b3.g[] gVarArr, boolean[] zArr, n0[] n0VarArr) {
for (int i = 0; i < gVarArr.length; i++) {
if (gVarArr[i] == null || !zArr[i]) {
if (n0VarArr[i] instanceof c.g.a.a.z2.t0.i) {
((c.g.a.a.z2.t0.i) n0VarArr[i]).Q(this);
} else if (n0VarArr[i] instanceof i.a) {
((i.a) n0VarArr[i]).c();
}
n0VarArr[i] = null;
}
}
}
public final void J(c.g.a.a.b3.g[] gVarArr, n0[] n0VarArr, int[] iArr) {
boolean z;
for (int i = 0; i < gVarArr.length; i++) {
if ((n0VarArr[i] instanceof u) || (n0VarArr[i] instanceof i.a)) {
int A = A(i, iArr);
if (A == -1) {
z = n0VarArr[i] instanceof u;
} else {
z = (n0VarArr[i] instanceof i.a) && ((i.a) n0VarArr[i]).f3993a == n0VarArr[A];
}
if (!z) {
if (n0VarArr[i] instanceof i.a) {
((i.a) n0VarArr[i]).c();
}
n0VarArr[i] = null;
}
}
}
}
public final void K(c.g.a.a.b3.g[] gVarArr, n0[] n0VarArr, boolean[] zArr, long j, int[] iArr) {
for (int i = 0; i < gVarArr.length; i++) {
c.g.a.a.b3.g gVar = gVarArr[i];
if (gVar != null) {
if (n0VarArr[i] == null) {
zArr[i] = true;
a aVar = this.n[iArr[i]];
int i2 = aVar.f4015c;
if (i2 == 0) {
n0VarArr[i] = o(aVar, gVar, j);
} else if (i2 == 2) {
n0VarArr[i] = new k(this.z.get(aVar.f4016d), gVar.a().d(0), this.x.f4075d);
}
} else if (n0VarArr[i] instanceof c.g.a.a.z2.t0.i) {
((e) ((c.g.a.a.z2.t0.i) n0VarArr[i]).E()).b(gVar);
}
}
}
for (int i3 = 0; i3 < gVarArr.length; i3++) {
if (n0VarArr[i3] == null && gVarArr[i3] != null) {
a aVar2 = this.n[iArr[i3]];
if (aVar2.f4015c == 1) {
int A = A(i3, iArr);
if (A == -1) {
n0VarArr[i3] = new u();
} else {
n0VarArr[i3] = ((c.g.a.a.z2.t0.i) n0VarArr[A]).T(j, aVar2.f4014b);
}
}
}
}
}
public void L(c.g.a.a.z2.u0.m.c cVar, int i) {
k[] kVarArr;
this.x = cVar;
this.y = i;
this.p.q(cVar);
c.g.a.a.z2.t0.i<e>[] iVarArr = this.u;
if (iVarArr != null) {
for (c.g.a.a.z2.t0.i<e> iVar : iVarArr) {
iVar.E().e(cVar, i);
}
this.t.i(this);
}
this.z = cVar.d(i).f4103d;
for (k kVar : this.v) {
Iterator<c.g.a.a.z2.u0.m.f> it = this.z.iterator();
while (true) {
if (it.hasNext()) {
c.g.a.a.z2.u0.m.f next = it.next();
if (next.a().equals(kVar.b())) {
boolean z = true;
kVar.d(next, (cVar.f4075d && i == cVar.e() - 1) ? false : false);
}
}
}
}
}
@Override
public synchronized void a(c.g.a.a.z2.t0.i<e> iVar) {
l.c remove = this.q.remove(iVar);
if (remove != null) {
remove.n();
}
}
@Override
public long b() {
return this.w.b();
}
@Override
public boolean c(long j) {
return this.w.c(j);
}
@Override
public boolean d() {
return this.w.d();
}
@Override
public long f(long j, h2 h2Var) {
c.g.a.a.z2.t0.i<e>[] iVarArr;
for (c.g.a.a.z2.t0.i<e> iVar : this.u) {
if (iVar.f3986a == 2) {
return iVar.f(j, h2Var);
}
}
return j;
}
@Override
public long g() {
return this.w.g();
}
@Override
public void h(long j) {
this.w.h(j);
}
@Override
public void m() {
this.k.a();
}
@Override
public long n(long j) {
for (c.g.a.a.z2.t0.i<e> iVar : this.u) {
iVar.S(j);
}
for (k kVar : this.v) {
kVar.c(j);
}
return j;
}
public final c.g.a.a.z2.t0.i<e> o(a aVar, c.g.a.a.b3.g gVar, long j) {
TrackGroup trackGroup;
int i;
TrackGroup trackGroup2;
int i2;
int i3 = aVar.f4018f;
boolean z = i3 != -1;
l.c cVar = null;
if (z) {
trackGroup = this.m.d(i3);
i = 1;
} else {
trackGroup = null;
i = 0;
}
int i4 = aVar.f4019g;
boolean z2 = i4 != -1;
if (z2) {
trackGroup2 = this.m.d(i4);
i += trackGroup2.f7978a;
} else {
trackGroup2 = null;
}
Format[] formatArr = new Format[i];
int[] iArr = new int[i];
if (z) {
formatArr[0] = trackGroup.d(0);
iArr[0] = 5;
i2 = 1;
} else {
i2 = 0;
}
ArrayList arrayList = new ArrayList();
if (z2) {
for (int i5 = 0; i5 < trackGroup2.f7978a; i5++) {
formatArr[i2] = trackGroup2.d(i5);
iArr[i2] = 3;
arrayList.add(formatArr[i2]);
i2++;
}
}
if (this.x.f4075d && z) {
cVar = this.p.k();
}
l.c cVar2 = cVar;
c.g.a.a.z2.t0.i<e> iVar = new c.g.a.a.z2.t0.i<>(aVar.f4014b, iArr, formatArr, this.f4009e.a(this.k, this.x, this.i, this.y, aVar.f4013a, gVar, aVar.f4014b, this.j, z, arrayList, cVar2, this.f4010f), this, this.l, j, this.f4011g, this.s, this.f4012h, this.r);
synchronized (this) {
this.q.put(iVar, cVar2);
}
return iVar;
}
@Override
public long p() {
return -9223372036854775807L;
}
@Override
public void q(b0.a aVar, long j) {
this.t = aVar;
aVar.k(this);
}
@Override
public long r(c.g.a.a.b3.g[] gVarArr, boolean[] zArr, n0[] n0VarArr, boolean[] zArr2, long j) {
int[] B = B(gVarArr);
I(gVarArr, zArr, n0VarArr);
J(gVarArr, n0VarArr, B);
K(gVarArr, n0VarArr, zArr2, j, B);
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
for (n0 n0Var : n0VarArr) {
if (n0Var instanceof c.g.a.a.z2.t0.i) {
arrayList.add((c.g.a.a.z2.t0.i) n0Var);
} else if (n0Var instanceof k) {
arrayList2.add((k) n0Var);
}
}
c.g.a.a.z2.t0.i<e>[] E = E(arrayList.size());
this.u = E;
arrayList.toArray(E);
k[] kVarArr = new k[arrayList2.size()];
this.v = kVarArr;
arrayList2.toArray(kVarArr);
this.w = this.o.a(this.u);
return j;
}
@Override
public TrackGroupArray s() {
return this.m;
}
@Override
public void u(long j, boolean z) {
for (c.g.a.a.z2.t0.i<e> iVar : this.u) {
iVar.u(j, z);
}
}
}