Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.fyber.inneractive.sdk.player.exoplayer2.extractor.mkv;
import android.util.Log;
import android.util.SparseArray;
import com.fyber.inneractive.sdk.player.exoplayer2.drm.a;
import com.fyber.inneractive.sdk.player.exoplayer2.extractor.g;
import com.fyber.inneractive.sdk.player.exoplayer2.extractor.h;
import com.fyber.inneractive.sdk.player.exoplayer2.extractor.m;
import com.fyber.inneractive.sdk.player.exoplayer2.extractor.mkv.d;
import com.fyber.inneractive.sdk.player.exoplayer2.extractor.n;
import com.fyber.inneractive.sdk.player.exoplayer2.i;
import com.fyber.inneractive.sdk.player.exoplayer2.l;
import com.fyber.inneractive.sdk.player.exoplayer2.util.k;
import com.fyber.inneractive.sdk.player.exoplayer2.util.u;
import com.google.firebase.FirebaseError;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import com.mbridge.msdk.playercommon.exoplayer2.extractor.ts.TsExtractor;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Stack;
import java.util.UUID;
public final class a implements b {
public final byte[] a = new byte[8];
public final Stack<C0187a> b = new Stack<>();
public final f c = new f();
public c d;
public int e;
public int f;
public long g;
public static final class C0187a {
public final int a;
public final long b;
public C0187a(int i, long j) {
this.a = i;
this.b = j;
}
}
public void a(c cVar) {
this.d = cVar;
}
public final long b(g gVar, int i) throws IOException, InterruptedException {
((com.fyber.inneractive.sdk.player.exoplayer2.extractor.b) gVar).b(this.a, 0, i, false);
long j = 0;
for (int i2 = 0; i2 < i; i2++) {
j = (j << 8) | (this.a[i2] & 255);
}
return j;
}
public boolean a(g gVar) throws IOException, InterruptedException {
boolean z;
boolean z2;
int i;
d.c cVar;
char c;
List<byte[]> singletonList;
String str;
boolean z3;
int i2;
ArrayList arrayList;
ArrayList arrayList2;
int i3;
List list;
List<byte[]> singletonList2;
String str2;
List<byte[]> list2;
String str3;
int a;
List<byte[]> list3;
List list4;
int i4;
i a2;
int i5;
int i6;
int i7;
com.fyber.inneractive.sdk.player.exoplayer2.video.b bVar;
byte[] bArr;
int i8;
m aVar;
com.fyber.inneractive.sdk.player.exoplayer2.util.f fVar;
int i9;
com.fyber.inneractive.sdk.player.exoplayer2.util.f fVar2;
?? r4 = 0;
int i10 = 1;
com.fyber.inneractive.sdk.player.exoplayer2.util.a.b(this.d != null);
while (true) {
if (!this.b.isEmpty() && ((com.fyber.inneractive.sdk.player.exoplayer2.extractor.b) gVar).c >= this.b.peek().b) {
c cVar2 = this.d;
int i11 = this.b.pop().a;
d dVar = d.this;
dVar.getClass();
if (i11 == 160) {
if (dVar.E != 2) {
return true;
}
if (!dVar.X) {
dVar.M |= 1;
}
dVar.a(dVar.c.get(dVar.K), dVar.F);
dVar.E = 0;
return true;
} else if (i11 != 174) {
if (i11 == 19899) {
int i12 = dVar.v;
if (i12 != -1) {
long j = dVar.w;
if (j != -1) {
if (i12 == 475249515) {
dVar.y = j;
return true;
}
return true;
}
}
throw new l("Mandatory element SeekID or SeekPosition not found");
} else if (i11 == 25152) {
d.c cVar3 = dVar.t;
if (cVar3.e) {
byte[] bArr2 = cVar3.g;
if (bArr2 != null) {
a.b[] bVarArr = new a.b[i10];
bVarArr[r4 == true ? 1 : 0] = new a.b(com.fyber.inneractive.sdk.player.exoplayer2.b.b, "video/webm", bArr2, r4);
cVar3.i = new com.fyber.inneractive.sdk.player.exoplayer2.drm.a(i10, bVarArr);
return true;
}
throw new l("Encrypted Track found but ContentEncKeyID was not found");
}
return true;
} else if (i11 == 28032) {
d.c cVar4 = dVar.t;
if (!cVar4.e || cVar4.f == null) {
return true;
}
throw new l("Combining encryption and compression is not supported");
} else if (i11 == 357149030) {
if (dVar.q == C.TIME_UNSET) {
dVar.q = 1000000L;
}
long j2 = dVar.r;
if (j2 != C.TIME_UNSET) {
dVar.s = dVar.a(j2);
return true;
}
return true;
} else if (i11 != 374648427) {
if (i11 == 475249515 && !dVar.u) {
h hVar = dVar.Y;
if (dVar.p != -1 && dVar.s != C.TIME_UNSET && (fVar = dVar.B) != null && (i9 = fVar.a) != 0 && (fVar2 = dVar.C) != null && fVar2.a == i9) {
int[] iArr = new int[i9];
long[] jArr = new long[i9];
long[] jArr2 = new long[i9];
long[] jArr3 = new long[i9];
for (int i13 = 0; i13 < i9; i13++) {
jArr3[i13] = dVar.B.a(i13);
jArr[i13] = dVar.p + dVar.C.a(i13);
}
while (true) {
int i14 = i9 - 1;
if (r4 < i14) {
int i15 = r4 + 1;
iArr[r4] = (int) (jArr[i15] - jArr[r4]);
jArr2[r4] = jArr3[i15] - jArr3[r4];
r4 = i15;
} else {
iArr[i14] = (int) ((dVar.p + dVar.o) - jArr[i14]);
jArr2[i14] = dVar.s - jArr3[i14];
dVar.B = null;
dVar.C = null;
aVar = new com.fyber.inneractive.sdk.player.exoplayer2.extractor.a(iArr, jArr, jArr2, jArr3);
}
}
} else {
dVar.B = null;
dVar.C = null;
aVar = new m.a(dVar.s);
}
hVar.a(aVar);
dVar.u = i10;
return true;
}
return true;
} else if (dVar.c.size() != 0) {
dVar.Y.c();
return true;
} else {
throw new l("No valid tracks were found");
}
} else {
String str4 = dVar.t.a;
if ("V_VP8".equals(str4) || "V_VP9".equals(str4) || "V_MPEG2".equals(str4) || "V_MPEG4/ISO/SP".equals(str4) || "V_MPEG4/ISO/ASP".equals(str4) || "V_MPEG4/ISO/AP".equals(str4) || "V_MPEG4/ISO/AVC".equals(str4) || "V_MPEGH/ISO/HEVC".equals(str4) || "V_MS/VFW/FOURCC".equals(str4) || "V_THEORA".equals(str4) || "A_OPUS".equals(str4) || "A_VORBIS".equals(str4) || "A_AAC".equals(str4) || "A_MPEG/L2".equals(str4) || "A_MPEG/L3".equals(str4) || "A_AC3".equals(str4) || "A_EAC3".equals(str4) || "A_TRUEHD".equals(str4) || "A_DTS".equals(str4) || "A_DTS/EXPRESS".equals(str4) || "A_DTS/LOSSLESS".equals(str4) || "A_FLAC".equals(str4) || "A_MS/ACM".equals(str4) || "A_PCM/INT/LIT".equals(str4) || "S_TEXT/UTF8".equals(str4) || "S_VOBSUB".equals(str4) || "S_HDMV/PGS".equals(str4) || "S_DVBSUB".equals(str4)) {
d.c cVar5 = dVar.t;
h hVar2 = dVar.Y;
int i16 = cVar5.b;
String str5 = cVar5.a;
str5.getClass();
switch (str5.hashCode()) {
case -2095576542:
if (str5.equals("V_MPEG4/ISO/AP")) {
c = 0;
break;
}
c = 65535;
break;
case -2095575984:
if (str5.equals("V_MPEG4/ISO/SP")) {
c = 1;
break;
}
c = 65535;
break;
case -1985379776:
if (str5.equals("A_MS/ACM")) {
c = 2;
break;
}
c = 65535;
break;
case -1784763192:
if (str5.equals("A_TRUEHD")) {
c = 3;
break;
}
c = 65535;
break;
case -1730367663:
if (str5.equals("A_VORBIS")) {
c = 4;
break;
}
c = 65535;
break;
case -1482641358:
if (str5.equals("A_MPEG/L2")) {
c = 5;
break;
}
c = 65535;
break;
case -1482641357:
if (str5.equals("A_MPEG/L3")) {
c = 6;
break;
}
c = 65535;
break;
case -1373388978:
if (str5.equals("V_MS/VFW/FOURCC")) {
c = 7;
break;
}
c = 65535;
break;
case -933872740:
if (str5.equals("S_DVBSUB")) {
c = '\b';
break;
}
c = 65535;
break;
case -538363189:
if (str5.equals("V_MPEG4/ISO/ASP")) {
c = '\t';
break;
}
c = 65535;
break;
case -538363109:
if (str5.equals("V_MPEG4/ISO/AVC")) {
c = '\n';
break;
}
c = 65535;
break;
case -425012669:
if (str5.equals("S_VOBSUB")) {
c = 11;
break;
}
c = 65535;
break;
case -356037306:
if (str5.equals("A_DTS/LOSSLESS")) {
c = '\f';
break;
}
c = 65535;
break;
case 62923557:
if (str5.equals("A_AAC")) {
c = '\r';
break;
}
c = 65535;
break;
case 62923603:
if (str5.equals("A_AC3")) {
c = 14;
break;
}
c = 65535;
break;
case 62927045:
if (str5.equals("A_DTS")) {
c = 15;
break;
}
c = 65535;
break;
case 82338133:
if (str5.equals("V_VP8")) {
c = 16;
break;
}
c = 65535;
break;
case 82338134:
if (str5.equals("V_VP9")) {
c = 17;
break;
}
c = 65535;
break;
case 99146302:
if (str5.equals("S_HDMV/PGS")) {
c = 18;
break;
}
c = 65535;
break;
case 444813526:
if (str5.equals("V_THEORA")) {
c = 19;
break;
}
c = 65535;
break;
case 542569478:
if (str5.equals("A_DTS/EXPRESS")) {
c = 20;
break;
}
c = 65535;
break;
case 725957860:
if (str5.equals("A_PCM/INT/LIT")) {
c = 21;
break;
}
c = 65535;
break;
case 855502857:
if (str5.equals("V_MPEGH/ISO/HEVC")) {
c = 22;
break;
}
c = 65535;
break;
case 1422270023:
if (str5.equals("S_TEXT/UTF8")) {
c = 23;
break;
}
c = 65535;
break;
case 1809237540:
if (str5.equals("V_MPEG2")) {
c = 24;
break;
}
c = 65535;
break;
case 1950749482:
if (str5.equals("A_EAC3")) {
c = 25;
break;
}
c = 65535;
break;
case 1950789798:
if (str5.equals("A_FLAC")) {
c = 26;
break;
}
c = 65535;
break;
case 1951062397:
if (str5.equals("A_OPUS")) {
c = 27;
break;
}
c = 65535;
break;
default:
c = 65535;
break;
}
String str6 = MimeTypes.AUDIO_UNKNOWN;
switch (c) {
case 0:
case 1:
case '\t':
byte[] bArr3 = cVar5.h;
singletonList = bArr3 == null ? null : Collections.singletonList(bArr3);
str = MimeTypes.VIDEO_MP4V;
a = -1;
list3 = singletonList;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i17 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
a2 = i.a(Integer.toString(i16), str, (String) null, -1, i3, cVar5.G, cVar5.I, i4, arrayList2, cVar5.i, i17, cVar5.N);
i5 = 1;
} else if (com.fyber.inneractive.sdk.player.exoplayer2.util.h.e(str)) {
if (cVar5.n == 0) {
int i18 = cVar5.l;
i6 = -1;
if (i18 == -1) {
i18 = cVar5.j;
}
cVar5.l = i18;
int i19 = cVar5.m;
if (i19 == -1) {
i19 = cVar5.k;
}
cVar5.m = i19;
} else {
i6 = -1;
}
float f = (cVar5.l == i6 || (i8 = cVar5.m) == i6) ? -1.0f : (cVar5.k * i7) / (cVar5.j * i8);
if (cVar5.q) {
if (cVar5.w == -1.0f || cVar5.x == -1.0f || cVar5.y == -1.0f || cVar5.z == -1.0f || cVar5.A == -1.0f || cVar5.B == -1.0f || cVar5.C == -1.0f || cVar5.D == -1.0f || cVar5.E == -1.0f || cVar5.F == -1.0f) {
bArr = null;
} else {
bArr = new byte[25];
ByteBuffer wrap = ByteBuffer.wrap(bArr);
wrap.put((byte) 0);
wrap.putShort((short) ((cVar5.w * 50000.0f) + 0.5f));
wrap.putShort((short) ((cVar5.x * 50000.0f) + 0.5f));
wrap.putShort((short) ((cVar5.y * 50000.0f) + 0.5f));
wrap.putShort((short) ((cVar5.z * 50000.0f) + 0.5f));
wrap.putShort((short) ((cVar5.A * 50000.0f) + 0.5f));
wrap.putShort((short) ((cVar5.B * 50000.0f) + 0.5f));
wrap.putShort((short) ((cVar5.C * 50000.0f) + 0.5f));
wrap.putShort((short) ((cVar5.D * 50000.0f) + 0.5f));
wrap.putShort((short) (cVar5.E + 0.5f));
wrap.putShort((short) (cVar5.F + 0.5f));
wrap.putShort((short) cVar5.u);
wrap.putShort((short) cVar5.v);
}
bVar = new com.fyber.inneractive.sdk.player.exoplayer2.video.b(cVar5.r, cVar5.t, cVar5.s, bArr);
} else {
bVar = null;
}
a2 = i.a(Integer.toString(i16), str, (String) null, -1, i3, cVar5.j, cVar5.k, -1.0f, arrayList2, -1, f, cVar5.o, cVar5.p, bVar, cVar5.i);
i5 = 2;
} else {
if (MimeTypes.APPLICATION_SUBRIP.equals(str)) {
a2 = i.a(Integer.toString(i16), str, (String) null, -1, i17, cVar5.N, cVar5.i);
} else if (!MimeTypes.APPLICATION_VOBSUB.equals(str) && !MimeTypes.APPLICATION_PGS.equals(str) && !MimeTypes.APPLICATION_DVBSUBS.equals(str)) {
throw new l("Unexpected MIME type.");
} else {
a2 = i.a(Integer.toString(i16), str, (String) null, -1, arrayList2, cVar5.N, cVar5.i);
}
i5 = 3;
}
n a3 = hVar2.a(cVar5.b, i5);
cVar5.O = a3;
a3.a(a2);
SparseArray<d.c> sparseArray = dVar.c;
d.c cVar6 = dVar.t;
sparseArray.put(cVar6.b, cVar6);
cVar = null;
break;
case 2:
k kVar = new k(cVar5.h);
try {
int h = kVar.h();
if (h != 1) {
if (h == 65534) {
kVar.e(24);
long i20 = kVar.i();
UUID uuid = d.b0;
if (i20 == uuid.getMostSignificantBits()) {
break;
}
}
z3 = false;
if (!z3) {
int a4 = u.a(cVar5.H);
if (a4 != 0) {
str6 = MimeTypes.AUDIO_RAW;
i2 = a4;
arrayList = null;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i172 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a32 = hVar2.a(cVar5.b, i5);
cVar5.O = a32;
a32.a(a2);
SparseArray<d.c> sparseArray2 = dVar.c;
d.c cVar62 = dVar.t;
sparseArray2.put(cVar62.b, cVar62);
cVar = null;
break;
} else {
Log.w("MatroskaExtractor", "Unsupported PCM bit depth: " + cVar5.H + ". Setting mimeType to " + MimeTypes.AUDIO_UNKNOWN);
}
} else {
Log.w("MatroskaExtractor", "Non-PCM MS/ACM is unsupported. Setting mimeType to " + MimeTypes.AUDIO_UNKNOWN);
}
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i1722 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a322 = hVar2.a(cVar5.b, i5);
cVar5.O = a322;
a322.a(a2);
SparseArray<d.c> sparseArray22 = dVar.c;
d.c cVar622 = dVar.t;
sparseArray22.put(cVar622.b, cVar622);
cVar = null;
}
z3 = true;
if (!z3) {
}
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i17222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a3222 = hVar2.a(cVar5.b, i5);
cVar5.O = a3222;
a3222.a(a2);
SparseArray<d.c> sparseArray222 = dVar.c;
d.c cVar6222 = dVar.t;
sparseArray222.put(cVar6222.b, cVar6222);
cVar = null;
} catch (ArrayIndexOutOfBoundsException unused) {
throw new l("Error parsing MS/ACM codec private");
}
break;
case 3:
str6 = MimeTypes.AUDIO_TRUEHD;
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i172222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a32222 = hVar2.a(cVar5.b, i5);
cVar5.O = a32222;
a32222.a(a2);
SparseArray<d.c> sparseArray2222 = dVar.c;
d.c cVar62222 = dVar.t;
sparseArray2222.put(cVar62222.b, cVar62222);
cVar = null;
break;
case 4:
byte[] bArr4 = cVar5.h;
try {
if (bArr4[0] == 2) {
int i21 = 0;
int i22 = 1;
while (bArr4[i22] == -1) {
i21 += 255;
i22++;
}
int i23 = i22 + 1;
int i24 = i21 + bArr4[i22];
int i25 = 0;
while (bArr4[i23] == -1) {
i25 += 255;
i23++;
}
int i26 = i23 + 1;
int i27 = i25 + bArr4[i23];
if (bArr4[i26] == 1) {
byte[] bArr5 = new byte[i24];
System.arraycopy(bArr4, i26, bArr5, 0, i24);
int i28 = i26 + i24;
if (bArr4[i28] == 3) {
int i29 = i28 + i27;
if (bArr4[i29] == 5) {
byte[] bArr6 = new byte[bArr4.length - i29];
System.arraycopy(bArr4, i29, bArr6, 0, bArr4.length - i29);
ArrayList arrayList3 = new ArrayList(2);
arrayList3.add(bArr5);
arrayList3.add(bArr6);
str = MimeTypes.AUDIO_VORBIS;
arrayList2 = arrayList3;
i3 = 8192;
i4 = -1;
int i1722222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a322222 = hVar2.a(cVar5.b, i5);
cVar5.O = a322222;
a322222.a(a2);
SparseArray<d.c> sparseArray22222 = dVar.c;
d.c cVar622222 = dVar.t;
sparseArray22222.put(cVar622222.b, cVar622222);
cVar = null;
break;
} else {
throw new l("Error parsing vorbis codec private");
}
} else {
throw new l("Error parsing vorbis codec private");
}
} else {
throw new l("Error parsing vorbis codec private");
}
} else {
throw new l("Error parsing vorbis codec private");
}
} catch (ArrayIndexOutOfBoundsException unused2) {
throw new l("Error parsing vorbis codec private");
}
case 5:
str = MimeTypes.AUDIO_MPEG_L2;
arrayList2 = null;
i3 = 4096;
i4 = -1;
int i17222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a3222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a3222222;
a3222222.a(a2);
SparseArray<d.c> sparseArray222222 = dVar.c;
d.c cVar6222222 = dVar.t;
sparseArray222222.put(cVar6222222.b, cVar6222222);
cVar = null;
break;
case 6:
str = MimeTypes.AUDIO_MPEG;
arrayList2 = null;
i3 = 4096;
i4 = -1;
int i172222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a32222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a32222222;
a32222222.a(a2);
SparseArray<d.c> sparseArray2222222 = dVar.c;
d.c cVar62222222 = dVar.t;
sparseArray2222222.put(cVar62222222.b, cVar62222222);
cVar = null;
break;
case 7:
byte[] bArr7 = cVar5.h;
try {
com.fyber.inneractive.sdk.player.exoplayer2.util.a.a(16 <= bArr7.length);
if ((((bArr7[17] & 255) << 8) | (bArr7[16] & 255) | ((bArr7[18] & 255) << 16) | ((bArr7[19] & 255) << 24)) == 826496599) {
for (int i30 = 40; i30 < bArr7.length - 4; i30++) {
if (bArr7[i30] == 0 && bArr7[i30 + 1] == 0 && bArr7[i30 + 2] == 1 && bArr7[i30 + 3] == 15) {
list = Collections.singletonList(Arrays.copyOfRange(bArr7, i30, bArr7.length));
}
}
throw new l("Failed to find FourCC VC1 initialization data");
}
list = null;
if (list != null) {
str6 = MimeTypes.VIDEO_VC1;
list4 = list;
} else {
Log.w("MatroskaExtractor", "Unsupported FourCC. Setting mimeType to video/x-unknown");
str6 = MimeTypes.VIDEO_UNKNOWN;
list4 = list;
}
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i1722222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a322222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a322222222;
a322222222.a(a2);
SparseArray<d.c> sparseArray22222222 = dVar.c;
d.c cVar622222222 = dVar.t;
sparseArray22222222.put(cVar622222222.b, cVar622222222);
cVar = null;
break;
} catch (ArrayIndexOutOfBoundsException unused3) {
throw new l("Error parsing FourCC VC1 codec private");
}
case '\b':
byte[] bArr8 = new byte[4];
byte[] bArr9 = cVar5.h;
bArr8[r4 == true ? 1 : 0] = bArr9[r4 == true ? 1 : 0];
bArr8[i10] = bArr9[i10];
bArr8[2] = bArr9[2];
bArr8[3] = bArr9[3];
singletonList2 = Collections.singletonList(bArr8);
str2 = MimeTypes.APPLICATION_DVBSUBS;
str = str2;
singletonList = singletonList2;
a = -1;
list3 = singletonList;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i17222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a3222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a3222222222;
a3222222222.a(a2);
SparseArray<d.c> sparseArray222222222 = dVar.c;
d.c cVar6222222222 = dVar.t;
sparseArray222222222.put(cVar6222222222.b, cVar6222222222);
cVar = null;
break;
case '\n':
com.fyber.inneractive.sdk.player.exoplayer2.video.a b = com.fyber.inneractive.sdk.player.exoplayer2.video.a.b(new k(cVar5.h));
list2 = b.a;
cVar5.P = b.b;
str3 = "video/avc";
str = str3;
singletonList = list2;
a = -1;
list3 = singletonList;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i172222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a32222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a32222222222;
a32222222222.a(a2);
SparseArray<d.c> sparseArray2222222222 = dVar.c;
d.c cVar62222222222 = dVar.t;
sparseArray2222222222.put(cVar62222222222.b, cVar62222222222);
cVar = null;
break;
case 11:
singletonList2 = Collections.singletonList(cVar5.h);
str2 = MimeTypes.APPLICATION_VOBSUB;
str = str2;
singletonList = singletonList2;
a = -1;
list3 = singletonList;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i1722222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a322222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a322222222222;
a322222222222.a(a2);
SparseArray<d.c> sparseArray22222222222 = dVar.c;
d.c cVar622222222222 = dVar.t;
sparseArray22222222222.put(cVar622222222222.b, cVar622222222222);
cVar = null;
break;
case '\f':
str6 = MimeTypes.AUDIO_DTS_HD;
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i17222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a3222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a3222222222222;
a3222222222222.a(a2);
SparseArray<d.c> sparseArray222222222222 = dVar.c;
d.c cVar6222222222222 = dVar.t;
sparseArray222222222222.put(cVar6222222222222.b, cVar6222222222222);
cVar = null;
break;
case '\r':
singletonList2 = Collections.singletonList(cVar5.h);
str2 = MimeTypes.AUDIO_AAC;
str = str2;
singletonList = singletonList2;
a = -1;
list3 = singletonList;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i172222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a32222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a32222222222222;
a32222222222222.a(a2);
SparseArray<d.c> sparseArray2222222222222 = dVar.c;
d.c cVar62222222222222 = dVar.t;
sparseArray2222222222222.put(cVar62222222222222.b, cVar62222222222222);
cVar = null;
break;
case 14:
str6 = MimeTypes.AUDIO_AC3;
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i1722222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a322222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a322222222222222;
a322222222222222.a(a2);
SparseArray<d.c> sparseArray22222222222222 = dVar.c;
d.c cVar622222222222222 = dVar.t;
sparseArray22222222222222.put(cVar622222222222222.b, cVar622222222222222);
cVar = null;
break;
case 15:
case 20:
str6 = MimeTypes.AUDIO_DTS;
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i17222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a3222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a3222222222222222;
a3222222222222222.a(a2);
SparseArray<d.c> sparseArray222222222222222 = dVar.c;
d.c cVar6222222222222222 = dVar.t;
sparseArray222222222222222.put(cVar6222222222222222.b, cVar6222222222222222);
cVar = null;
break;
case 16:
str6 = MimeTypes.VIDEO_VP8;
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i172222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a32222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a32222222222222222;
a32222222222222222.a(a2);
SparseArray<d.c> sparseArray2222222222222222 = dVar.c;
d.c cVar62222222222222222 = dVar.t;
sparseArray2222222222222222.put(cVar62222222222222222.b, cVar62222222222222222);
cVar = null;
break;
case 17:
str6 = MimeTypes.VIDEO_VP9;
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i1722222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a322222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a322222222222222222;
a322222222222222222.a(a2);
SparseArray<d.c> sparseArray22222222222222222 = dVar.c;
d.c cVar622222222222222222 = dVar.t;
sparseArray22222222222222222.put(cVar622222222222222222.b, cVar622222222222222222);
cVar = null;
break;
case 18:
str6 = MimeTypes.APPLICATION_PGS;
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i17222222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a3222222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a3222222222222222222;
a3222222222222222222.a(a2);
SparseArray<d.c> sparseArray222222222222222222 = dVar.c;
d.c cVar6222222222222222222 = dVar.t;
sparseArray222222222222222222.put(cVar6222222222222222222.b, cVar6222222222222222222);
cVar = null;
break;
case 19:
str6 = MimeTypes.VIDEO_UNKNOWN;
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i172222222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a32222222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a32222222222222222222;
a32222222222222222222.a(a2);
SparseArray<d.c> sparseArray2222222222222222222 = dVar.c;
d.c cVar62222222222222222222 = dVar.t;
sparseArray2222222222222222222.put(cVar62222222222222222222.b, cVar62222222222222222222);
cVar = null;
break;
case 21:
a = u.a(cVar5.H);
if (a == 0) {
Log.w("MatroskaExtractor", "Unsupported PCM bit depth: " + cVar5.H + ". Setting mimeType to " + MimeTypes.AUDIO_UNKNOWN);
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i1722222222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a322222222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a322222222222222222222;
a322222222222222222222.a(a2);
SparseArray<d.c> sparseArray22222222222222222222 = dVar.c;
d.c cVar622222222222222222222 = dVar.t;
sparseArray22222222222222222222.put(cVar622222222222222222222.b, cVar622222222222222222222);
cVar = null;
break;
} else {
str = MimeTypes.AUDIO_RAW;
list3 = null;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i17222222222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a3222222222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a3222222222222222222222;
a3222222222222222222222.a(a2);
SparseArray<d.c> sparseArray222222222222222222222 = dVar.c;
d.c cVar6222222222222222222222 = dVar.t;
sparseArray222222222222222222222.put(cVar6222222222222222222222.b, cVar6222222222222222222222);
cVar = null;
}
break;
case 22:
com.fyber.inneractive.sdk.player.exoplayer2.video.c a5 = com.fyber.inneractive.sdk.player.exoplayer2.video.c.a(new k(cVar5.h));
list2 = a5.a;
cVar5.P = a5.b;
str3 = "video/hevc";
str = str3;
singletonList = list2;
a = -1;
list3 = singletonList;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i172222222222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a32222222222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a32222222222222222222222;
a32222222222222222222222.a(a2);
SparseArray<d.c> sparseArray2222222222222222222222 = dVar.c;
d.c cVar62222222222222222222222 = dVar.t;
sparseArray2222222222222222222222.put(cVar62222222222222222222222.b, cVar62222222222222222222222);
cVar = null;
break;
case 23:
str6 = MimeTypes.APPLICATION_SUBRIP;
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i1722222222222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a322222222222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a322222222222222222222222;
a322222222222222222222222.a(a2);
SparseArray<d.c> sparseArray22222222222222222222222 = dVar.c;
d.c cVar622222222222222222222222 = dVar.t;
sparseArray22222222222222222222222.put(cVar622222222222222222222222.b, cVar622222222222222222222222);
cVar = null;
break;
case 24:
str6 = MimeTypes.VIDEO_MPEG2;
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i17222222222222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a3222222222222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a3222222222222222222222222;
a3222222222222222222222222.a(a2);
SparseArray<d.c> sparseArray222222222222222222222222 = dVar.c;
d.c cVar6222222222222222222222222 = dVar.t;
sparseArray222222222222222222222222.put(cVar6222222222222222222222222.b, cVar6222222222222222222222222);
cVar = null;
break;
case 25:
str6 = MimeTypes.AUDIO_E_AC3;
list4 = null;
i2 = -1;
arrayList = list4;
list3 = arrayList;
a = i2;
str = str6;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i172222222222222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a32222222222222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a32222222222222222222222222;
a32222222222222222222222222.a(a2);
SparseArray<d.c> sparseArray2222222222222222222222222 = dVar.c;
d.c cVar62222222222222222222222222 = dVar.t;
sparseArray2222222222222222222222222.put(cVar62222222222222222222222222.b, cVar62222222222222222222222222);
cVar = null;
break;
case 26:
singletonList2 = Collections.singletonList(cVar5.h);
str2 = MimeTypes.AUDIO_FLAC;
str = str2;
singletonList = singletonList2;
a = -1;
list3 = singletonList;
i4 = a;
arrayList2 = list3;
i3 = -1;
int i1722222222222222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a322222222222222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a322222222222222222222222222;
a322222222222222222222222222.a(a2);
SparseArray<d.c> sparseArray22222222222222222222222222 = dVar.c;
d.c cVar622222222222222222222222222 = dVar.t;
sparseArray22222222222222222222222222.put(cVar622222222222222222222222222.b, cVar622222222222222222222222222);
cVar = null;
break;
case 27:
ArrayList arrayList4 = new ArrayList(3);
arrayList4.add(cVar5.h);
arrayList4.add(ByteBuffer.allocate(8).order(ByteOrder.nativeOrder()).putLong(cVar5.J).array());
arrayList4.add(ByteBuffer.allocate(8).order(ByteOrder.nativeOrder()).putLong(cVar5.K).array());
str = MimeTypes.AUDIO_OPUS;
arrayList2 = arrayList4;
i3 = 5760;
i4 = -1;
int i17222222222222222222222222222 = (cVar5.M ? 1 : 0) | 0 | (!cVar5.L ? 2 : 0);
if (!com.fyber.inneractive.sdk.player.exoplayer2.util.h.d(str)) {
}
n a3222222222222222222222222222 = hVar2.a(cVar5.b, i5);
cVar5.O = a3222222222222222222222222222;
a3222222222222222222222222222.a(a2);
SparseArray<d.c> sparseArray222222222222222222222222222 = dVar.c;
d.c cVar6222222222222222222222222222 = dVar.t;
sparseArray222222222222222222222222222.put(cVar6222222222222222222222222222.b, cVar6222222222222222222222222222);
cVar = null;
break;
default:
throw new l("Unrecognized codec identifier.");
}
} else {
cVar = null;
}
dVar.t = cVar;
return true;
}
}
?? r3 = 0;
if (this.e == 0) {
long a6 = this.c.a(gVar, true, false, 4);
if (a6 == -2) {
?? r42 = (com.fyber.inneractive.sdk.player.exoplayer2.extractor.b) gVar;
r42.e = 0;
while (true) {
r42.a(this.a, r3, 4, r3);
int a7 = f.a(this.a[r3]);
if (a7 != -1 && a7 <= 4) {
int a8 = (int) f.a(this.a, a7, r3);
if (((d.b) this.d).a(a8)) {
r42.c(a7);
a6 = a8;
}
}
r42.c(1);
r3 = 0;
}
}
z = true;
if (a6 == -1) {
return false;
}
z2 = false;
this.f = (int) a6;
this.e = 1;
} else {
z = true;
z2 = false;
}
if (this.e == z) {
this.g = this.c.a(gVar, z2, z, 8);
this.e = 2;
}
c cVar7 = this.d;
int i31 = this.f;
d.this.getClass();
switch (i31) {
case 131:
case 136:
case 155:
case 159:
case 176:
case 179:
case 186:
case 215:
case 231:
case 241:
case 251:
case 16980:
case 17029:
case 17143:
case 18401:
case 18408:
case 20529:
case 20530:
case 21420:
case 21432:
case 21680:
case 21682:
case 21690:
case 21930:
case 21945:
case 21946:
case 21947:
case 21948:
case 21949:
case 22186:
case 22203:
case 25188:
case 2352003:
case 2807729:
i = 2;
break;
case TsExtractor.TS_STREAM_TYPE_SPLICE_INFO:
case FirebaseError.ERROR_WEAK_PASSWORD:
case 2274716:
i = 3;
break;
case 160:
case 174:
case 183:
case 187:
case 224:
case 225:
case 18407:
case 19899:
case 20532:
case 20533:
case 21936:
case 21968:
case 25152:
case 28032:
case 30320:
case 290298740:
case 357149030:
case 374648427:
case 408125543:
case 440786851:
case 475249515:
case 524531317:
i = 1;
break;
case 161:
case 163:
case 16981:
case 18402:
case 21419:
case 25506:
case 30322:
i = 4;
break;
case 181:
case 17545:
case 21969:
case 21970:
case 21971:
case 21972:
case 21973:
case 21974:
case 21975:
case 21976:
case 21977:
case 21978:
i = 5;
break;
default:
i = 0;
break;
}
if (i != 0) {
if (i == 1) {
long j3 = ((com.fyber.inneractive.sdk.player.exoplayer2.extractor.b) gVar).c;
this.b.add(new C0187a(this.f, this.g + j3));
((d.b) this.d).a(this.f, j3, this.g);
this.e = 0;
return true;
} else if (i == 2) {
long j4 = this.g;
if (j4 <= 8) {
((d.b) this.d).a(this.f, b(gVar, (int) j4));
this.e = 0;
return true;
}
throw new l("Invalid integer size: " + this.g);
} else if (i == 3) {
long j5 = this.g;
if (j5 <= 2147483647L) {
((d.b) this.d).a(this.f, c(gVar, (int) j5));
this.e = 0;
return true;
}
throw new l("String element size: " + this.g);
} else if (i == 4) {
((d.b) this.d).a(this.f, (int) this.g, gVar);
this.e = 0;
return true;
} else if (i != 5) {
throw new l("Invalid element type " + i);
} else {
long j6 = this.g;
if (j6 != 4 && j6 != 8) {
throw new l("Invalid float size: " + this.g);
}
((d.b) this.d).a(this.f, a(gVar, (int) j6));
this.e = 0;
return true;
}
}
((com.fyber.inneractive.sdk.player.exoplayer2.extractor.b) gVar).c((int) this.g);
this.e = 0;
r4 = 0;
i10 = 1;
}
}
public final String c(g gVar, int i) throws IOException, InterruptedException {
if (i == 0) {
return "";
}
byte[] bArr = new byte[i];
((com.fyber.inneractive.sdk.player.exoplayer2.extractor.b) gVar).b(bArr, 0, i, false);
return new String(bArr);
}
public final double a(g gVar, int i) throws IOException, InterruptedException {
long b = b(gVar, i);
if (i == 4) {
return Float.intBitsToFloat((int) b);
}
return Double.longBitsToDouble(b);
}
}