MD5 校验值:8d01bad3385dcb060a6dcda2da0f8dbf
e.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package p2; import android.net.Uri; import android.util.Pair; import android.util.SparseArray; import com.pichillilorenzo.flutter_inappwebview_android.R; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.UUID; import s0.g; import s0.l; import s0.p; import s0.y; import s0.z; import u2.t; import u2.v; import v0.i0; import v0.o; import v0.p; import x1.a; import x1.f0; import x1.h; import x1.l0; import x1.m0; import x1.q; import x1.r; import x1.s; import x1.s0; import x1.t0; import x1.w; import x1.x; public class e implements r { @Deprecated public static final x f19811e0 = new x() { @Override public x a(t.a aVar) { return w.c(this, aVar); } @Override public final r[] b() { r[] C; C = e.C(); return C; } @Override public r[] c(Uri uri, Map map) { return w.a(this, uri, map); } @Override public x d(boolean z10) { return w.b(this, z10); } }; private static final byte[] f19812f0 = {49, 10, 48, 48, 58, 48, 48, 58, 48, 48, 44, 48, 48, 48, 32, 45, 45, 62, 32, 48, 48, 58, 48, 48, 58, 48, 48, 44, 48, 48, 48, 10}; private static final byte[] f19813g0 = i0.s0("Format: Start, End, ReadOrder, Layer, Style, Name, MarginL, MarginR, MarginV, Effect, Text"); private static final byte[] f19814h0 = {68, 105, 97, 108, 111, 103, 117, 101, 58, 32, 48, 58, 48, 48, 58, 48, 48, 58, 48, 48, 44, 48, 58, 48, 48, 58, 48, 48, 58, 48, 48, 44}; private static final byte[] f19815i0 = {87, 69, 66, 86, 84, 84, 10, 10, 48, 48, 58, 48, 48, 58, 48, 48, 46, 48, 48, 48, 32, 45, 45, 62, 32, 48, 48, 58, 48, 48, 58, 48, 48, 46, 48, 48, 48, 10}; private static final UUID f19816j0 = new UUID(72057594037932032L, -9223371306706625679L); private static final Map<String, Integer> f19817k0; private boolean A; private long B; private long C; private long D; private p E; private p F; private boolean G; private boolean H; private int I; private long J; private long K; private int L; private int M; private int[] N; private int O; private int P; private int Q; private int R; private boolean S; private long T; private int U; private int V; private int W; private boolean X; private boolean Y; private boolean Z; private final p2.c f19818a; private int f19819a0; private final g f19820b; private byte f19821b0; private final SparseArray<c> f19822c; private boolean f19823c0; private final boolean f19824d; private x1.t f19825d0; private final boolean f19826e; private final t.a f19827f; private final v0.x f19828g; private final v0.x f19829h; private final v0.x f19830i; private final v0.x f19831j; private final v0.x f19832k; private final v0.x f19833l; private final v0.x f19834m; private final v0.x f19835n; private final v0.x f19836o; private final v0.x f19837p; private ByteBuffer f19838q; private long f19839r; private long f19840s; private long f19841t; private long f19842u; private long f19843v; private c f19844w; private boolean f19845x; private int f19846y; private long f19847z; private final class b implements p2.b { private b() { } @Override public void a(int i10) { e.this.q(i10); } @Override public int b(int i10) { return e.this.w(i10); } @Override public boolean c(int i10) { return e.this.B(i10); } @Override public void d(int i10, String str) { e.this.J(i10, str); } @Override public void e(int i10, double d10) { e.this.t(i10, d10); } @Override public void f(int i10, long j10, long j11) { e.this.I(i10, j10, j11); } @Override public void g(int i10, long j10) { e.this.z(i10, j10); } @Override public void h(int i10, int i11, s sVar) { e.this.n(i10, i11, sVar); } } public static final class c { public byte[] O; public t0 U; public boolean V; public s0 Y; public int Z; public String f19849a; public String f19850b; public int f19851c; public int f19852d; public int f19853e; public int f19854f; private int f19855g; public boolean f19856h; public byte[] f19857i; public s0.a f19858j; public byte[] f19859k; public l f19860l; public int f19861m = -1; public int f19862n = -1; public int f19863o = -1; public int f19864p = -1; public int f19865q = -1; public int f19866r = 0; public int f19867s = -1; public float f19868t = 0.0f; public float f19869u = 0.0f; public float f19870v = 0.0f; public byte[] f19871w = null; public int f19872x = -1; public boolean f19873y = false; public int f19874z = -1; public int A = -1; public int B = -1; public int C = 1000; public int D = 200; public float E = -1.0f; public float F = -1.0f; public float G = -1.0f; public float H = -1.0f; public float I = -1.0f; public float J = -1.0f; public float K = -1.0f; public float L = -1.0f; public float M = -1.0f; public float N = -1.0f; public int P = 1; public int Q = -1; public int R = 8000; public long S = 0; public long T = 0; public boolean W = true; private String X = "eng"; protected c() { } public void f() { v0.a.e(this.Y); } private byte[] g(String str) { byte[] bArr = this.f19859k; if (bArr != null) { return bArr; } throw z.a("Missing CodecPrivate for codec " + str, null); } private byte[] h() { if (this.E == -1.0f || this.F == -1.0f || this.G == -1.0f || this.H == -1.0f || this.I == -1.0f || this.J == -1.0f || this.K == -1.0f || this.L == -1.0f || this.M == -1.0f || this.N == -1.0f) { return null; } byte[] bArr = new byte[25]; ByteBuffer order = ByteBuffer.wrap(bArr).order(ByteOrder.LITTLE_ENDIAN); order.put((byte) 0); order.putShort((short) ((this.E * 50000.0f) + 0.5f)); order.putShort((short) ((this.F * 50000.0f) + 0.5f)); order.putShort((short) ((this.G * 50000.0f) + 0.5f)); order.putShort((short) ((this.H * 50000.0f) + 0.5f)); order.putShort((short) ((this.I * 50000.0f) + 0.5f)); order.putShort((short) ((this.J * 50000.0f) + 0.5f)); order.putShort((short) ((this.K * 50000.0f) + 0.5f)); order.putShort((short) ((this.L * 50000.0f) + 0.5f)); order.putShort((short) (this.M + 0.5f)); order.putShort((short) (this.N + 0.5f)); order.putShort((short) this.C); order.putShort((short) this.D); return bArr; } private static Pair<String, List<byte[]>> k(v0.x xVar) { try { xVar.U(16); long w10 = xVar.w(); if (w10 == 1482049860) { return new Pair<>("video/divx", null); } if (w10 == 859189832) { return new Pair<>("video/3gpp", null); } if (w10 != 826496599) { o.h("MatroskaExtractor", "Unknown FourCC. Setting mimeType to video/x-unknown"); return new Pair<>("video/x-unknown", null); } byte[] e10 = xVar.e(); for (int f10 = xVar.f() + 20; f10 < e10.length - 4; f10++) { if (e10[f10] == 0 && e10[f10 + 1] == 0 && e10[f10 + 2] == 1 && e10[f10 + 3] == 15) { return new Pair<>("video/wvc1", Collections.singletonList(Arrays.copyOfRange(e10, f10, e10.length))); } } throw z.a("Failed to find FourCC VC1 initialization data", null); } catch (ArrayIndexOutOfBoundsException unused) { throw z.a("Error parsing FourCC private data", null); } } private static boolean l(v0.x xVar) { try { int y10 = xVar.y(); if (y10 == 1) { return true; } if (y10 != 65534) { return false; } xVar.T(24); if (xVar.z() == e.f19816j0.getMostSignificantBits()) { if (xVar.z() == e.f19816j0.getLeastSignificantBits()) { return true; } } return false; } catch (ArrayIndexOutOfBoundsException unused) { throw z.a("Error parsing MS/ACM codec private", null); } } private static List<byte[]> m(byte[] bArr) { int i10; int i11; try { if (bArr[0] != 2) { throw z.a("Error parsing vorbis codec private", null); } int i12 = 0; int i13 = 1; while (true) { i10 = bArr[i13]; if ((i10 & 255) != 255) { break; } i12 += 255; i13++; } int i14 = i13 + 1; int i15 = i12 + (i10 & 255); int i16 = 0; while (true) { i11 = bArr[i14]; if ((i11 & 255) != 255) { break; } i16 += 255; i14++; } int i17 = i14 + 1; int i18 = i16 + (i11 & 255); if (bArr[i17] != 1) { throw z.a("Error parsing vorbis codec private", null); } byte[] bArr2 = new byte[i15]; System.arraycopy(bArr, i17, bArr2, 0, i15); int i19 = i17 + i15; if (bArr[i19] != 3) { throw z.a("Error parsing vorbis codec private", null); } int i20 = i19 + i18; if (bArr[i20] != 5) { throw z.a("Error parsing vorbis codec private", null); } byte[] bArr3 = new byte[bArr.length - i20]; System.arraycopy(bArr, i20, bArr3, 0, bArr.length - i20); ArrayList arrayList = new ArrayList(2); arrayList.add(bArr2); arrayList.add(bArr3); return arrayList; } catch (ArrayIndexOutOfBoundsException unused) { throw z.a("Error parsing vorbis codec private", null); } } public boolean o(boolean z10) { return "A_OPUS".equals(this.f19850b) ? z10 : this.f19854f > 0; } public void i(x1.t tVar, int i10) { char c10; List<byte[]> singletonList; StringBuilder sb2; int g02; String str; String str2; List<byte[]> list; String str3; int i11; int i12; String str4; p.b bVar; int i13; int i14; int i15; x1.o a10; String str5 = this.f19850b; str5.hashCode(); switch (str5.hashCode()) { case -2095576542: if (str5.equals("V_MPEG4/ISO/AP")) { c10 = 0; break; } c10 = 65535; break; case -2095575984: if (str5.equals("V_MPEG4/ISO/SP")) { c10 = 1; break; } c10 = 65535; break; case -1985379776: if (str5.equals("A_MS/ACM")) { c10 = 2; break; } c10 = 65535; break; case -1784763192: if (str5.equals("A_TRUEHD")) { c10 = 3; break; } c10 = 65535; break; case -1730367663: if (str5.equals("A_VORBIS")) { c10 = 4; break; } c10 = 65535; break; case -1482641358: if (str5.equals("A_MPEG/L2")) { c10 = 5; break; } c10 = 65535; break; case -1482641357: if (str5.equals("A_MPEG/L3")) { c10 = 6; break; } c10 = 65535; break; case -1373388978: if (str5.equals("V_MS/VFW/FOURCC")) { c10 = 7; break; } c10 = 65535; break; case -933872740: if (str5.equals("S_DVBSUB")) { c10 = '\b'; break; } c10 = 65535; break; case -538363189: if (str5.equals("V_MPEG4/ISO/ASP")) { c10 = '\t'; break; } c10 = 65535; break; case -538363109: if (str5.equals("V_MPEG4/ISO/AVC")) { c10 = '\n'; break; } c10 = 65535; break; case -425012669: if (str5.equals("S_VOBSUB")) { c10 = 11; break; } c10 = 65535; break; case -356037306: if (str5.equals("A_DTS/LOSSLESS")) { c10 = '\f'; break; } c10 = 65535; break; case 62923557: if (str5.equals("A_AAC")) { c10 = '\r'; break; } c10 = 65535; break; case 62923603: if (str5.equals("A_AC3")) { c10 = 14; break; } c10 = 65535; break; case 62927045: if (str5.equals("A_DTS")) { c10 = 15; break; } c10 = 65535; break; case 82318131: if (str5.equals("V_AV1")) { c10 = 16; break; } c10 = 65535; break; case 82338133: if (str5.equals("V_VP8")) { c10 = 17; break; } c10 = 65535; break; case 82338134: if (str5.equals("V_VP9")) { c10 = 18; break; } c10 = 65535; break; case 99146302: if (str5.equals("S_HDMV/PGS")) { c10 = 19; break; } c10 = 65535; break; case 444813526: if (str5.equals("V_THEORA")) { c10 = 20; break; } c10 = 65535; break; case 542569478: if (str5.equals("A_DTS/EXPRESS")) { c10 = 21; break; } c10 = 65535; break; case 635596514: if (str5.equals("A_PCM/FLOAT/IEEE")) { c10 = 22; break; } c10 = 65535; break; case 725948237: if (str5.equals("A_PCM/INT/BIG")) { c10 = 23; break; } c10 = 65535; break; case 725957860: if (str5.equals("A_PCM/INT/LIT")) { c10 = 24; break; } c10 = 65535; break; case 738597099: if (str5.equals("S_TEXT/ASS")) { c10 = 25; break; } c10 = 65535; break; case 855502857: if (str5.equals("V_MPEGH/ISO/HEVC")) { c10 = 26; break; } c10 = 65535; break; case 1045209816: if (str5.equals("S_TEXT/WEBVTT")) { c10 = 27; break; } c10 = 65535; break; case 1422270023: if (str5.equals("S_TEXT/UTF8")) { c10 = 28; break; } c10 = 65535; break; case 1809237540: if (str5.equals("V_MPEG2")) { c10 = 29; break; } c10 = 65535; break; case 1950749482: if (str5.equals("A_EAC3")) { c10 = 30; break; } c10 = 65535; break; case 1950789798: if (str5.equals("A_FLAC")) { c10 = 31; break; } c10 = 65535; break; case 1951062397: if (str5.equals("A_OPUS")) { c10 = ' '; break; } c10 = 65535; break; default: c10 = 65535; break; } int i16 = 4096; String str6 = "audio/raw"; switch (c10) { case 0: case 1: case '\t': byte[] bArr = this.f19859k; singletonList = bArr == null ? null : Collections.singletonList(bArr); str6 = "video/mp4v-es"; str2 = null; i11 = -1; i12 = -1; if (this.O != null && (a10 = x1.o.a(new v0.x(this.O))) != null) { str2 = a10.f27014c; str6 = "video/dolby-vision"; } str4 = str6; int i17 = 0; int i18 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { bVar.N(this.P).p0(this.R).i0(i11); i13 = 1; } else if (y.s(str4)) { if (this.f19866r == 0) { int i19 = this.f19864p; i14 = -1; if (i19 == -1) { i19 = this.f19861m; } this.f19864p = i19; int i20 = this.f19865q; if (i20 == -1) { i20 = this.f19862n; } this.f19865q = i20; } else { i14 = -1; } float f10 = -1.0f; if (this.f19864p != i14 && (i15 = this.f19865q) != i14) { f10 = (this.f19862n * r5) / (this.f19861m * i15); } s0.g a11 = this.f19873y ? new g.b().d(this.f19874z).c(this.B).e(this.A).f(h()).g(this.f19863o).b(this.f19863o).a() : null; if (this.f19849a != null && e.f19817k0.containsKey(this.f19849a)) { i14 = ((Integer) e.f19817k0.get(this.f19849a)).intValue(); } if (this.f19867s == 0 && Float.compare(this.f19868t, 0.0f) == 0 && Float.compare(this.f19869u, 0.0f) == 0) { if (Float.compare(this.f19870v, 0.0f) != 0) { if (Float.compare(this.f19870v, 90.0f) == 0) { i17 = 90; } else if (Float.compare(this.f19870v, -180.0f) == 0 || Float.compare(this.f19870v, 180.0f) == 0) { i17 = 180; } else if (Float.compare(this.f19870v, -90.0f) == 0) { i17 = 270; } } bVar.v0(this.f19861m).Y(this.f19862n).k0(f10).n0(i17).l0(this.f19871w).r0(this.f19872x).P(a11); i13 = 2; } i17 = i14; bVar.v0(this.f19861m).Y(this.f19862n).k0(f10).n0(i17).l0(this.f19871w).r0(this.f19872x).P(a11); i13 = 2; } else { if (!"application/x-subrip".equals(str4) && !"text/x-ssa".equals(str4) && !"text/vtt".equals(str4) && !"application/vobsub".equals(str4) && !"application/pgs".equals(str4) && !"application/dvbsubs".equals(str4)) { throw z.a("Unexpected MIME type.", null); } i13 = 3; } if (this.f19849a != null && !e.f19817k0.containsKey(this.f19849a)) { bVar.c0(this.f19849a); } s0.p K = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10 = tVar.b(this.f19851c, i13); this.Y = b10; b10.f(K); return; case 2: if (!l(new v0.x(g(this.f19850b)))) { sb2 = new StringBuilder(); sb2.append("Non-PCM MS/ACM is unsupported. Setting mimeType to "); sb2.append("audio/x-unknown"); o.h("MatroskaExtractor", sb2.toString()); singletonList = null; str2 = null; str6 = "audio/x-unknown"; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i172 = 0; int i182 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102 = tVar.b(this.f19851c, i13); this.Y = b102; b102.f(K2); return; } g02 = i0.g0(this.Q); if (g02 == 0) { sb2 = new StringBuilder(); str = "Unsupported PCM bit depth: "; sb2.append(str); sb2.append(this.Q); sb2.append(". Setting mimeType to "); sb2.append("audio/x-unknown"); o.h("MatroskaExtractor", sb2.toString()); singletonList = null; str2 = null; str6 = "audio/x-unknown"; i11 = -1; i12 = -1; if (this.O != null) { str2 = a10.f27014c; str6 = "video/dolby-vision"; break; } str4 = str6; int i1722 = 0; int i1822 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { bVar.c0(this.f19849a); break; } s0.p K22 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022 = tVar.b(this.f19851c, i13); this.Y = b1022; b1022.f(K22); return; } i11 = g02; singletonList = null; str2 = null; i12 = -1; if (this.O != null) { } str4 = str6; int i17222 = 0; int i18222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10222 = tVar.b(this.f19851c, i13); this.Y = b10222; b10222.f(K222); return; case 3: this.U = new t0(); str6 = "audio/true-hd"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i172222 = 0; int i182222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102222 = tVar.b(this.f19851c, i13); this.Y = b102222; b102222.f(K2222); return; case 4: i16 = 8192; singletonList = m(g(this.f19850b)); str6 = "audio/vorbis"; str2 = null; i12 = i16; i11 = -1; if (this.O != null) { } str4 = str6; int i1722222 = 0; int i1822222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K22222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022222 = tVar.b(this.f19851c, i13); this.Y = b1022222; b1022222.f(K22222); return; case 5: str6 = "audio/mpeg-L2"; singletonList = null; str2 = null; i12 = i16; i11 = -1; if (this.O != null) { } str4 = str6; int i17222222 = 0; int i18222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10222222 = tVar.b(this.f19851c, i13); this.Y = b10222222; b10222222.f(K222222); return; case 6: str6 = "audio/mpeg"; singletonList = null; str2 = null; i12 = i16; i11 = -1; if (this.O != null) { } str4 = str6; int i172222222 = 0; int i182222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102222222 = tVar.b(this.f19851c, i13); this.Y = b102222222; b102222222.f(K2222222); return; case 7: Pair<String, List<byte[]>> k10 = k(new v0.x(g(this.f19850b))); str6 = (String) k10.first; singletonList = (List) k10.second; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i1722222222 = 0; int i1822222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K22222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022222222 = tVar.b(this.f19851c, i13); this.Y = b1022222222; b1022222222.f(K22222222); return; case '\b': byte[] bArr2 = new byte[4]; System.arraycopy(g(this.f19850b), 0, bArr2, 0, 4); singletonList = com.google.common.collect.x.B(bArr2); str6 = "application/dvbsubs"; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i17222222222 = 0; int i18222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10222222222 = tVar.b(this.f19851c, i13); this.Y = b10222222222; b10222222222.f(K222222222); return; case '\n': x1.d b11 = x1.d.b(new v0.x(g(this.f19850b))); list = b11.f26891a; this.Z = b11.f26892b; str3 = b11.f26902l; str6 = "video/avc"; i11 = -1; i12 = -1; List<byte[]> list2 = list; str2 = str3; singletonList = list2; if (this.O != null) { } str4 = str6; int i172222222222 = 0; int i182222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102222222222 = tVar.b(this.f19851c, i13); this.Y = b102222222222; b102222222222.f(K2222222222); return; case 11: singletonList = com.google.common.collect.x.B(g(this.f19850b)); str2 = null; str6 = "application/vobsub"; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i1722222222222 = 0; int i1822222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K22222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022222222222 = tVar.b(this.f19851c, i13); this.Y = b1022222222222; b1022222222222.f(K22222222222); return; case '\f': str6 = "audio/vnd.dts.hd"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i17222222222222 = 0; int i18222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10222222222222 = tVar.b(this.f19851c, i13); this.Y = b10222222222222; b10222222222222.f(K222222222222); return; case '\r': singletonList = Collections.singletonList(g(this.f19850b)); a.b f11 = x1.a.f(this.f19859k); this.R = f11.f26852a; this.P = f11.f26853b; str2 = f11.f26854c; str6 = "audio/mp4a-latm"; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i172222222222222 = 0; int i182222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102222222222222 = tVar.b(this.f19851c, i13); this.Y = b102222222222222; b102222222222222.f(K2222222222222); return; case 14: str6 = "audio/ac3"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i1722222222222222 = 0; int i1822222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K22222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022222222222222 = tVar.b(this.f19851c, i13); this.Y = b1022222222222222; b1022222222222222.f(K22222222222222); return; case 15: case 21: str6 = "audio/vnd.dts"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i17222222222222222 = 0; int i18222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10222222222222222 = tVar.b(this.f19851c, i13); this.Y = b10222222222222222; b10222222222222222.f(K222222222222222); return; case 16: str6 = "video/av01"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i172222222222222222 = 0; int i182222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102222222222222222 = tVar.b(this.f19851c, i13); this.Y = b102222222222222222; b102222222222222222.f(K2222222222222222); return; case 17: str6 = "video/x-vnd.on2.vp8"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i1722222222222222222 = 0; int i1822222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K22222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022222222222222222 = tVar.b(this.f19851c, i13); this.Y = b1022222222222222222; b1022222222222222222.f(K22222222222222222); return; case 18: str6 = "video/x-vnd.on2.vp9"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i17222222222222222222 = 0; int i18222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b10222222222222222222; b10222222222222222222.f(K222222222222222222); return; case 19: str6 = "application/pgs"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i172222222222222222222 = 0; int i182222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b102222222222222222222; b102222222222222222222.f(K2222222222222222222); return; case 20: str6 = "video/x-unknown"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i1722222222222222222222 = 0; int i1822222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K22222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b1022222222222222222222; b1022222222222222222222.f(K22222222222222222222); return; case 22: if (this.Q == 32) { singletonList = null; str2 = null; i11 = 4; i12 = -1; if (this.O != null) { } str4 = str6; int i17222222222222222222222 = 0; int i18222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b10222222222222222222222; b10222222222222222222222.f(K222222222222222222222); return; } sb2 = new StringBuilder(); str = "Unsupported floating point PCM bit depth: "; sb2.append(str); sb2.append(this.Q); sb2.append(". Setting mimeType to "); sb2.append("audio/x-unknown"); o.h("MatroskaExtractor", sb2.toString()); singletonList = null; str2 = null; str6 = "audio/x-unknown"; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i172222222222222222222222 = 0; int i182222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b102222222222222222222222; b102222222222222222222222.f(K2222222222222222222222); return; case 23: int i21 = this.Q; if (i21 == 8) { singletonList = null; str2 = null; i11 = 3; i12 = -1; if (this.O != null) { } str4 = str6; int i1722222222222222222222222 = 0; int i1822222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K22222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b1022222222222222222222222; b1022222222222222222222222.f(K22222222222222222222222); return; } if (i21 == 16) { g02 = 268435456; } else if (i21 == 24) { g02 = 1342177280; } else { if (i21 != 32) { sb2 = new StringBuilder(); str = "Unsupported big endian PCM bit depth: "; sb2.append(str); sb2.append(this.Q); sb2.append(". Setting mimeType to "); sb2.append("audio/x-unknown"); o.h("MatroskaExtractor", sb2.toString()); singletonList = null; str2 = null; str6 = "audio/x-unknown"; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i17222222222222222222222222 = 0; int i18222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b10222222222222222222222222; b10222222222222222222222222.f(K222222222222222222222222); return; } g02 = 1610612736; } i11 = g02; singletonList = null; str2 = null; i12 = -1; if (this.O != null) { } str4 = str6; int i172222222222222222222222222 = 0; int i182222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b102222222222222222222222222; b102222222222222222222222222.f(K2222222222222222222222222); return; case 24: g02 = i0.g0(this.Q); if (g02 == 0) { sb2 = new StringBuilder(); str = "Unsupported little endian PCM bit depth: "; sb2.append(str); sb2.append(this.Q); sb2.append(". Setting mimeType to "); sb2.append("audio/x-unknown"); o.h("MatroskaExtractor", sb2.toString()); singletonList = null; str2 = null; str6 = "audio/x-unknown"; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i1722222222222222222222222222 = 0; int i1822222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K22222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b1022222222222222222222222222; b1022222222222222222222222222.f(K22222222222222222222222222); return; } i11 = g02; singletonList = null; str2 = null; i12 = -1; if (this.O != null) { } str4 = str6; int i17222222222222222222222222222 = 0; int i18222222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K222222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18222222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10222222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b10222222222222222222222222222; b10222222222222222222222222222.f(K222222222222222222222222222); return; case 25: singletonList = com.google.common.collect.x.C(e.f19813g0, g(this.f19850b)); str2 = null; str6 = "text/x-ssa"; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i172222222222222222222222222222 = 0; int i182222222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2222222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182222222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102222222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b102222222222222222222222222222; b102222222222222222222222222222.f(K2222222222222222222222222222); return; case 26: f0 a12 = f0.a(new v0.x(g(this.f19850b))); list = a12.f26930a; this.Z = a12.f26931b; str3 = a12.f26941l; str6 = "video/hevc"; i11 = -1; i12 = -1; List<byte[]> list22 = list; str2 = str3; singletonList = list22; if (this.O != null) { } str4 = str6; int i1722222222222222222222222222222 = 0; int i1822222222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K22222222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822222222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022222222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b1022222222222222222222222222222; b1022222222222222222222222222222.f(K22222222222222222222222222222); return; case 27: singletonList = null; str2 = null; str6 = "text/vtt"; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i17222222222222222222222222222222 = 0; int i18222222222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K222222222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18222222222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10222222222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b10222222222222222222222222222222; b10222222222222222222222222222222.f(K222222222222222222222222222222); return; case 28: str6 = "application/x-subrip"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i172222222222222222222222222222222 = 0; int i182222222222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2222222222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182222222222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102222222222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b102222222222222222222222222222222; b102222222222222222222222222222222.f(K2222222222222222222222222222222); return; case 29: str6 = "video/mpeg2"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i1722222222222222222222222222222222 = 0; int i1822222222222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K22222222222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822222222222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022222222222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b1022222222222222222222222222222222; b1022222222222222222222222222222222.f(K22222222222222222222222222222222); return; case R.styleable.AppCompatTheme_actionModeTheme: str6 = "audio/eac3"; singletonList = null; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i17222222222222222222222222222222222 = 0; int i18222222222222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K222222222222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i18222222222222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b10222222222222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b10222222222222222222222222222222222; b10222222222222222222222222222222222.f(K222222222222222222222222222222222); return; case R.styleable.AppCompatTheme_actionModeWebSearchDrawable: singletonList = Collections.singletonList(g(this.f19850b)); str6 = "audio/flac"; str2 = null; i11 = -1; i12 = -1; if (this.O != null) { } str4 = str6; int i172222222222222222222222222222222222 = 0; int i182222222222222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K2222222222222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i182222222222222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b102222222222222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b102222222222222222222222222222222222; b102222222222222222222222222222222222.f(K2222222222222222222222222222222222); return; case R.styleable.AppCompatTheme_actionOverflowButtonStyle: i16 = 5760; singletonList = new ArrayList<>(3); singletonList.add(g(this.f19850b)); ByteBuffer allocate = ByteBuffer.allocate(8); ByteOrder byteOrder = ByteOrder.LITTLE_ENDIAN; singletonList.add(allocate.order(byteOrder).putLong(this.S).array()); singletonList.add(ByteBuffer.allocate(8).order(byteOrder).putLong(this.T).array()); str6 = "audio/opus"; str2 = null; i12 = i16; i11 = -1; if (this.O != null) { } str4 = str6; int i1722222222222222222222222222222222222 = 0; int i1822222222222222222222222222222222222 = (this.W ? 1 : 0) | 0 | (!this.V ? 2 : 0); bVar = new p.b(); if (!y.o(str4)) { } if (this.f19849a != null) { } s0.p K22222222222222222222222222222222222 = bVar.Z(i10).o0(str4).f0(i12).e0(this.X).q0(i1822222222222222222222222222222222222).b0(singletonList).O(str2).U(this.f19860l).K(); s0 b1022222222222222222222222222222222222 = tVar.b(this.f19851c, i13); this.Y = b1022222222222222222222222222222222222; b1022222222222222222222222222222222222.f(K22222222222222222222222222222222222); return; default: throw z.a("Unrecognized codec identifier.", null); } } public void j() { t0 t0Var = this.U; if (t0Var != null) { t0Var.a(this.Y, this.f19858j); } } public void n() { t0 t0Var = this.U; if (t0Var != null) { t0Var.b(); } } } static { HashMap hashMap = new HashMap(); hashMap.put("htc_video_rotA-000", 0); hashMap.put("htc_video_rotA-090", 90); hashMap.put("htc_video_rotA-180", 180); hashMap.put("htc_video_rotA-270", 270); f19817k0 = Collections.unmodifiableMap(hashMap); } e(p2.c cVar, int i10, t.a aVar) { this.f19840s = -1L; this.f19841t = -9223372036854775807L; this.f19842u = -9223372036854775807L; this.f19843v = -9223372036854775807L; this.B = -1L; this.C = -1L; this.D = -9223372036854775807L; this.f19818a = cVar; cVar.b(new b()); this.f19827f = aVar; this.f19824d = (i10 & 1) == 0; this.f19826e = (i10 & 2) == 0; this.f19820b = new g(); this.f19822c = new SparseArray<>(); this.f19830i = new v0.x(4); this.f19831j = new v0.x(ByteBuffer.allocate(4).putInt(-1).array()); this.f19832k = new v0.x(4); this.f19828g = new v0.x(w0.d.f26329a); this.f19829h = new v0.x(4); this.f19833l = new v0.x(); this.f19834m = new v0.x(); this.f19835n = new v0.x(8); this.f19836o = new v0.x(); this.f19837p = new v0.x(); this.N = new int[1]; } public e(t.a aVar, int i10) { this(new p2.a(), i10, aVar); } private static boolean A(String str) { str.hashCode(); char c10 = 65535; switch (str.hashCode()) { case -2095576542: if (str.equals("V_MPEG4/ISO/AP")) { c10 = 0; break; } break; case -2095575984: if (str.equals("V_MPEG4/ISO/SP")) { c10 = 1; break; } break; case -1985379776: if (str.equals("A_MS/ACM")) { c10 = 2; break; } break; case -1784763192: if (str.equals("A_TRUEHD")) { c10 = 3; break; } break; case -1730367663: if (str.equals("A_VORBIS")) { c10 = 4; break; } break; case -1482641358: if (str.equals("A_MPEG/L2")) { c10 = 5; break; } break; case -1482641357: if (str.equals("A_MPEG/L3")) { c10 = 6; break; } break; case -1373388978: if (str.equals("V_MS/VFW/FOURCC")) { c10 = 7; break; } break; case -933872740: if (str.equals("S_DVBSUB")) { c10 = '\b'; break; } break; case -538363189: if (str.equals("V_MPEG4/ISO/ASP")) { c10 = '\t'; break; } break; case -538363109: if (str.equals("V_MPEG4/ISO/AVC")) { c10 = '\n'; break; } break; case -425012669: if (str.equals("S_VOBSUB")) { c10 = 11; break; } break; case -356037306: if (str.equals("A_DTS/LOSSLESS")) { c10 = '\f'; break; } break; case 62923557: if (str.equals("A_AAC")) { c10 = '\r'; break; } break; case 62923603: if (str.equals("A_AC3")) { c10 = 14; break; } break; case 62927045: if (str.equals("A_DTS")) { c10 = 15; break; } break; case 82318131: if (str.equals("V_AV1")) { c10 = 16; break; } break; case 82338133: if (str.equals("V_VP8")) { c10 = 17; break; } break; case 82338134: if (str.equals("V_VP9")) { c10 = 18; break; } break; case 99146302: if (str.equals("S_HDMV/PGS")) { c10 = 19; break; } break; case 444813526: if (str.equals("V_THEORA")) { c10 = 20; break; } break; case 542569478: if (str.equals("A_DTS/EXPRESS")) { c10 = 21; break; } break; case 635596514: if (str.equals("A_PCM/FLOAT/IEEE")) { c10 = 22; break; } break; case 725948237: if (str.equals("A_PCM/INT/BIG")) { c10 = 23; break; } break; case 725957860: if (str.equals("A_PCM/INT/LIT")) { c10 = 24; break; } break; case 738597099: if (str.equals("S_TEXT/ASS")) { c10 = 25; break; } break; case 855502857: if (str.equals("V_MPEGH/ISO/HEVC")) { c10 = 26; break; } break; case 1045209816: if (str.equals("S_TEXT/WEBVTT")) { c10 = 27; break; } break; case 1422270023: if (str.equals("S_TEXT/UTF8")) { c10 = 28; break; } break; case 1809237540: if (str.equals("V_MPEG2")) { c10 = 29; break; } break; case 1950749482: if (str.equals("A_EAC3")) { c10 = 30; break; } break; case 1950789798: if (str.equals("A_FLAC")) { c10 = 31; break; } break; case 1951062397: if (str.equals("A_OPUS")) { c10 = ' '; break; } break; } switch (c10) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case '\b': case '\t': case '\n': case 11: case '\f': case '\r': case 14: case 15: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case R.styleable.AppCompatTheme_actionModeTheme: case R.styleable.AppCompatTheme_actionModeWebSearchDrawable: case R.styleable.AppCompatTheme_actionOverflowButtonStyle: return true; default: return false; } } public static r[] C() { return new r[]{new e(t.a.f25435a, 2)}; } private boolean D(l0 l0Var, long j10) { if (this.A) { this.C = j10; l0Var.f26981a = this.B; this.A = false; return true; } if (this.f19845x) { long j11 = this.C; if (j11 != -1) { l0Var.f26981a = j11; this.C = -1L; return true; } } return false; } private void E(s sVar, int i10) { if (this.f19830i.g() >= i10) { return; } if (this.f19830i.b() < i10) { v0.x xVar = this.f19830i; xVar.c(Math.max(xVar.b() * 2, i10)); } sVar.readFully(this.f19830i.e(), this.f19830i.g(), i10 - this.f19830i.g()); this.f19830i.S(i10); } private void F() { this.U = 0; this.V = 0; this.W = 0; this.X = false; this.Y = false; this.Z = false; this.f19819a0 = 0; this.f19821b0 = (byte) 0; this.f19823c0 = false; this.f19833l.P(0); } private long G(long j10) { long j11 = this.f19841t; if (j11 != -9223372036854775807L) { return i0.Y0(j10, j11, 1000L); } throw z.a("Can't scale timecode prior to timecodeScale being set.", null); } private static void H(String str, long j10, byte[] bArr) { byte[] u10; int i10; str.hashCode(); char c10 = 65535; switch (str.hashCode()) { case 738597099: if (str.equals("S_TEXT/ASS")) { c10 = 0; break; } break; case 1045209816: if (str.equals("S_TEXT/WEBVTT")) { c10 = 1; break; } break; case 1422270023: if (str.equals("S_TEXT/UTF8")) { c10 = 2; break; } break; } switch (c10) { case 0: u10 = u(j10, "%01d:%02d:%02d:%02d", 10000L); i10 = 21; break; case 1: u10 = u(j10, "%02d:%02d:%02d.%03d", 1000L); i10 = 25; break; case 2: u10 = u(j10, "%02d:%02d:%02d,%03d", 1000L); i10 = 19; break; default: throw new IllegalArgumentException(); } System.arraycopy(u10, 0, bArr, i10, u10.length); } private int K(s sVar, c cVar, int i10, boolean z10) { int i11; if ("S_TEXT/UTF8".equals(cVar.f19850b)) { L(sVar, f19812f0, i10); } else if ("S_TEXT/ASS".equals(cVar.f19850b)) { L(sVar, f19814h0, i10); } else { if (!"S_TEXT/WEBVTT".equals(cVar.f19850b)) { s0 s0Var = cVar.Y; if (!this.X) { if (cVar.f19856h) { this.Q &= -1073741825; if (!this.Y) { sVar.readFully(this.f19830i.e(), 0, 1); this.U++; if ((this.f19830i.e()[0] & 128) == 128) { throw z.a("Extension bit is set in signal byte", null); } this.f19821b0 = this.f19830i.e()[0]; this.Y = true; } byte b10 = this.f19821b0; if ((b10 & 1) == 1) { boolean z11 = (b10 & 2) == 2; this.Q |= 1073741824; if (!this.f19823c0) { sVar.readFully(this.f19835n.e(), 0, 8); this.U += 8; this.f19823c0 = true; this.f19830i.e()[0] = (byte) ((z11 ? 128 : 0) | 8); this.f19830i.T(0); s0Var.d(this.f19830i, 1, 1); this.V++; this.f19835n.T(0); s0Var.d(this.f19835n, 8, 1); this.V += 8; } if (z11) { if (!this.Z) { sVar.readFully(this.f19830i.e(), 0, 1); this.U++; this.f19830i.T(0); this.f19819a0 = this.f19830i.G(); this.Z = true; } int i12 = this.f19819a0 * 4; this.f19830i.P(i12); sVar.readFully(this.f19830i.e(), 0, i12); this.U += i12; short s10 = (short) ((this.f19819a0 / 2) + 1); int i13 = (s10 * 6) + 2; ByteBuffer byteBuffer = this.f19838q; if (byteBuffer == null || byteBuffer.capacity() < i13) { this.f19838q = ByteBuffer.allocate(i13); } this.f19838q.position(0); this.f19838q.putShort(s10); int i14 = 0; int i15 = 0; while (true) { i11 = this.f19819a0; if (i14 >= i11) { break; } int K = this.f19830i.K(); if (i14 % 2 == 0) { this.f19838q.putShort((short) (K - i15)); } else { this.f19838q.putInt(K - i15); } i14++; i15 = K; } int i16 = (i10 - this.U) - i15; int i17 = i11 % 2; ByteBuffer byteBuffer2 = this.f19838q; if (i17 == 1) { byteBuffer2.putInt(i16); } else { byteBuffer2.putShort((short) i16); this.f19838q.putInt(0); } this.f19836o.R(this.f19838q.array(), i13); s0Var.d(this.f19836o, i13, 1); this.V += i13; } } } else { byte[] bArr = cVar.f19857i; if (bArr != null) { this.f19833l.R(bArr, bArr.length); } } if (cVar.o(z10)) { this.Q |= 268435456; this.f19837p.P(0); int g10 = (this.f19833l.g() + i10) - this.U; this.f19830i.P(4); this.f19830i.e()[0] = (byte) ((g10 >> 24) & 255); this.f19830i.e()[1] = (byte) ((g10 >> 16) & 255); this.f19830i.e()[2] = (byte) ((g10 >> 8) & 255); this.f19830i.e()[3] = (byte) (g10 & 255); s0Var.d(this.f19830i, 4, 2); this.V += 4; } this.X = true; } int g11 = i10 + this.f19833l.g(); if (!"V_MPEG4/ISO/AVC".equals(cVar.f19850b) && !"V_MPEGH/ISO/HEVC".equals(cVar.f19850b)) { if (cVar.U != null) { v0.a.g(this.f19833l.g() == 0); cVar.U.d(sVar); } while (true) { int i18 = this.U; if (i18 >= g11) { break; } int M = M(sVar, s0Var, g11 - i18); this.U += M; this.V += M; } } else { byte[] e10 = this.f19829h.e(); e10[0] = 0; e10[1] = 0; e10[2] = 0; int i19 = cVar.Z; int i20 = 4 - i19; while (this.U < g11) { int i21 = this.W; if (i21 == 0) { N(sVar, e10, i20, i19); this.U += i19; this.f19829h.T(0); this.W = this.f19829h.K(); this.f19828g.T(0); s0Var.b(this.f19828g, 4); this.V += 4; } else { int M2 = M(sVar, s0Var, i21); this.U += M2; this.V += M2; this.W -= M2; } } } if ("A_VORBIS".equals(cVar.f19850b)) { this.f19831j.T(0); s0Var.b(this.f19831j, 4); this.V += 4; } return s(); } L(sVar, f19815i0, i10); } return s(); } private void L(s sVar, byte[] bArr, int i10) { int length = bArr.length + i10; if (this.f19834m.b() < length) { this.f19834m.Q(Arrays.copyOf(bArr, length + i10)); } else { System.arraycopy(bArr, 0, this.f19834m.e(), 0, bArr.length); } sVar.readFully(this.f19834m.e(), bArr.length, i10); this.f19834m.T(0); this.f19834m.S(length); } private int M(s sVar, s0 s0Var, int i10) { int a10 = this.f19833l.a(); if (a10 <= 0) { return s0Var.a(sVar, i10, false); } int min = Math.min(i10, a10); s0Var.b(this.f19833l, min); return min; } private void N(s sVar, byte[] bArr, int i10, int i11) { int min = Math.min(i11, this.f19833l.a()); sVar.readFully(bArr, i10 + min, i11 - min); if (min > 0) { this.f19833l.l(bArr, i10, min); } } private void g(int i10) { if (this.E == null || this.F == null) { throw z.a("Element " + i10 + " must be in a Cues", null); } } private void k(int i10) { if (this.f19844w != null) { return; } throw z.a("Element " + i10 + " must be in a TrackEntry", null); } private void m() { v0.a.i(this.f19825d0); } private m0 o(v0.p pVar, v0.p pVar2) { int i10; if (this.f19840s == -1 || this.f19843v == -9223372036854775807L || pVar == null || pVar.c() == 0 || pVar2 == null || pVar2.c() != pVar.c()) { return new m0.b(this.f19843v); } int c10 = pVar.c(); int[] iArr = new int[c10]; long[] jArr = new long[c10]; long[] jArr2 = new long[c10]; long[] jArr3 = new long[c10]; int i11 = 0; for (int i12 = 0; i12 < c10; i12++) { jArr3[i12] = pVar.b(i12); jArr[i12] = this.f19840s + pVar2.b(i12); } while (true) { i10 = c10 - 1; if (i11 >= i10) { break; } int i13 = i11 + 1; iArr[i11] = (int) (jArr[i13] - jArr[i11]); jArr2[i11] = jArr3[i13] - jArr3[i11]; i11 = i13; } iArr[i10] = (int) ((this.f19840s + this.f19839r) - jArr[i10]); long j10 = this.f19843v - jArr3[i10]; jArr2[i10] = j10; if (j10 <= 0) { o.h("MatroskaExtractor", "Discarding last cue point with unexpected duration: " + j10); iArr = Arrays.copyOf(iArr, i10); jArr = Arrays.copyOf(jArr, i10); jArr2 = Arrays.copyOf(jArr2, i10); jArr3 = Arrays.copyOf(jArr3, i10); } return new h(iArr, jArr, jArr2, jArr3); } private void p(c cVar, long j10, int i10, int i11, int i12) { String str; t0 t0Var = cVar.U; if (t0Var != null) { t0Var.c(cVar.Y, j10, i10, i11, i12, cVar.f19858j); } else { if ("S_TEXT/UTF8".equals(cVar.f19850b) || "S_TEXT/ASS".equals(cVar.f19850b) || "S_TEXT/WEBVTT".equals(cVar.f19850b)) { if (this.M > 1) { str = "Skipping subtitle sample in laced block."; } else { long j11 = this.K; if (j11 == -9223372036854775807L) { str = "Skipping subtitle sample with no duration."; } else { H(cVar.f19850b, j11, this.f19834m.e()); int f10 = this.f19834m.f(); while (true) { if (f10 >= this.f19834m.g()) { break; } if (this.f19834m.e()[f10] == 0) { this.f19834m.S(f10); break; } f10++; } s0 s0Var = cVar.Y; v0.x xVar = this.f19834m; s0Var.b(xVar, xVar.g()); i11 += this.f19834m.g(); } } o.h("MatroskaExtractor", str); } if ((268435456 & i10) != 0) { if (this.M > 1) { this.f19837p.P(0); } else { int g10 = this.f19837p.g(); cVar.Y.d(this.f19837p, g10, 2); i11 += g10; } } cVar.Y.e(j10, i10, i11, i12, cVar.f19858j); } this.H = true; } private static int[] r(int[] iArr, int i10) { return iArr == null ? new int[i10] : iArr.length >= i10 ? iArr : new int[Math.max(iArr.length * 2, i10)]; } private int s() { int i10 = this.V; F(); return i10; } private static byte[] u(long j10, String str, long j11) { v0.a.a(j10 != -9223372036854775807L); int i10 = (int) (j10 / 3600000000L); long j12 = j10 - ((i10 * 3600) * 1000000); int i11 = (int) (j12 / 60000000); long j13 = j12 - ((i11 * 60) * 1000000); int i12 = (int) (j13 / 1000000); return i0.s0(String.format(Locale.US, str, Integer.valueOf(i10), Integer.valueOf(i11), Integer.valueOf(i12), Integer.valueOf((int) ((j13 - (i12 * 1000000)) / j11)))); } protected boolean B(int i10) { return i10 == 357149030 || i10 == 524531317 || i10 == 475249515 || i10 == 374648427; } protected void I(int i10, long j10, long j11) { m(); if (i10 == 160) { this.S = false; this.T = 0L; return; } if (i10 == 174) { this.f19844w = new c(); return; } if (i10 == 187) { this.G = false; return; } if (i10 == 19899) { this.f19846y = -1; this.f19847z = -1L; return; } if (i10 == 20533) { v(i10).f19856h = true; return; } if (i10 == 21968) { v(i10).f19873y = true; return; } if (i10 == 408125543) { long j12 = this.f19840s; if (j12 != -1 && j12 != j10) { throw z.a("Multiple Segment elements not supported", null); } this.f19840s = j10; this.f19839r = j11; return; } if (i10 == 475249515) { this.E = new v0.p(); this.F = new v0.p(); } else if (i10 == 524531317 && !this.f19845x) { if (this.f19824d && this.B != -1) { this.A = true; } else { this.f19825d0.u(new m0.b(this.f19843v)); this.f19845x = true; } } } protected void J(int i10, String str) { if (i10 == 134) { v(i10).f19850b = str; return; } if (i10 != 17026) { if (i10 == 21358) { v(i10).f19849a = str; return; } else { if (i10 != 2274716) { return; } v(i10).X = str; return; } } if ("webm".equals(str) || "matroska".equals(str)) { return; } throw z.a("DocType " + str + " not supported", null); } @Override public void a(long j10, long j11) { this.D = -9223372036854775807L; this.I = 0; this.f19818a.reset(); this.f19820b.e(); F(); for (int i10 = 0; i10 < this.f19822c.size(); i10++) { this.f19822c.valueAt(i10).n(); } } @Override public final void c(x1.t tVar) { this.f19825d0 = tVar; if (this.f19826e) { tVar = new v(tVar, this.f19827f); } this.f19825d0 = tVar; } @Override public r h() { return q.b(this); } @Override public final boolean i(s sVar) { return new f().b(sVar); } @Override public List j() { return q.a(this); } @Override public final int l(s sVar, l0 l0Var) { this.H = false; boolean z10 = true; while (z10 && !this.H) { z10 = this.f19818a.a(sVar); if (z10 && D(l0Var, sVar.getPosition())) { return 1; } } if (z10) { return 0; } for (int i10 = 0; i10 < this.f19822c.size(); i10++) { c valueAt = this.f19822c.valueAt(i10); valueAt.f(); valueAt.j(); } return -1; } protected void n(int i10, int i11, s sVar) { c cVar; int i12; c cVar2; c cVar3; long j10; long j11; int i13; int i14; int i15; int i16 = 0; int i17 = 1; if (i10 != 161 && i10 != 163) { if (i10 == 165) { if (this.I != 2) { return; } y(this.f19822c.get(this.O), this.R, sVar, i11); return; } if (i10 == 16877) { x(v(i10), sVar, i11); return; } if (i10 == 16981) { k(i10); byte[] bArr = new byte[i11]; this.f19844w.f19857i = bArr; sVar.readFully(bArr, 0, i11); return; } if (i10 == 18402) { byte[] bArr2 = new byte[i11]; sVar.readFully(bArr2, 0, i11); v(i10).f19858j = new s0.a(1, bArr2, 0, 0); return; } if (i10 == 21419) { Arrays.fill(this.f19832k.e(), (byte) 0); sVar.readFully(this.f19832k.e(), 4 - i11, i11); this.f19832k.T(0); this.f19846y = (int) this.f19832k.I(); return; } if (i10 == 25506) { k(i10); byte[] bArr3 = new byte[i11]; this.f19844w.f19859k = bArr3; sVar.readFully(bArr3, 0, i11); return; } if (i10 != 30322) { throw z.a("Unexpected id: " + i10, null); } k(i10); byte[] bArr4 = new byte[i11]; this.f19844w.f19871w = bArr4; sVar.readFully(bArr4, 0, i11); return; } if (this.I == 0) { this.O = (int) this.f19820b.d(sVar, false, true, 8); this.P = this.f19820b.b(); this.K = -9223372036854775807L; this.I = 1; this.f19830i.P(0); } c cVar4 = this.f19822c.get(this.O); if (cVar4 == null) { sVar.i(i11 - this.P); this.I = 0; return; } cVar4.f(); if (this.I == 1) { E(sVar, 3); int i18 = (this.f19830i.e()[2] & 6) >> 1; byte b10 = 255; if (i18 == 0) { this.M = 1; int[] r10 = r(this.N, 1); this.N = r10; r10[0] = (i11 - this.P) - 3; } else { int i19 = 4; E(sVar, 4); int i20 = (this.f19830i.e()[3] & 255) + 1; this.M = i20; int[] r11 = r(this.N, i20); this.N = r11; if (i18 == 2) { int i21 = (i11 - this.P) - 4; int i22 = this.M; Arrays.fill(r11, 0, i22, i21 / i22); } else if (i18 == 1) { int i23 = 0; int i24 = 0; while (true) { i13 = this.M; if (i23 >= i13 - 1) { break; } this.N[i23] = 0; do { i19++; E(sVar, i19); i14 = this.f19830i.e()[i19 - 1] & 255; int[] iArr = this.N; i15 = iArr[i23] + i14; iArr[i23] = i15; } while (i14 == 255); i24 += i15; i23++; } this.N[i13 - 1] = ((i11 - this.P) - i19) - i24; } else { if (i18 != 3) { throw z.a("Unexpected lacing value: " + i18, null); } int i25 = 0; int i26 = 0; while (true) { int i27 = this.M; if (i25 >= i27 - 1) { cVar2 = cVar4; this.N[i27 - 1] = ((i11 - this.P) - i19) - i26; break; } this.N[i25] = i16; i19++; E(sVar, i19); int i28 = i19 - 1; if (this.f19830i.e()[i28] == 0) { throw z.a("No valid varint length mask found", null); } int i29 = i16; while (true) { if (i29 >= 8) { cVar3 = cVar4; j10 = 0; break; } int i30 = i17 << (7 - i29); if ((this.f19830i.e()[i28] & i30) != 0) { int i31 = i19 + i29; E(sVar, i31); cVar3 = cVar4; long j12 = (~i30) & this.f19830i.e()[i28] & b10; int i32 = i28 + 1; while (true) { j11 = j12; if (i32 >= i31) { break; } j12 = (j11 << 8) | (this.f19830i.e()[i32] & b10); i32++; i31 = i31; b10 = 255; } int i33 = i31; if (i25 > 0) { j11 -= (1 << ((i29 * 7) + 6)) - 1; } j10 = j11; i19 = i33; } else { i29++; i17 = 1; b10 = 255; } } if (j10 < -2147483648L || j10 > 2147483647L) { break; } int i34 = (int) j10; int[] iArr2 = this.N; if (i25 != 0) { i34 += iArr2[i25 - 1]; } iArr2[i25] = i34; i26 += i34; i25++; cVar4 = cVar3; i16 = 0; i17 = 1; b10 = 255; } } } cVar2 = cVar4; this.J = this.D + G((this.f19830i.e()[0] << 8) | (this.f19830i.e()[1] & 255)); cVar = cVar2; this.Q = (cVar.f19852d == 2 || (i10 == 163 && (this.f19830i.e()[2] & 128) == 128)) ? 1 : 0; this.I = 2; this.L = 0; i12 = 163; } else { cVar = cVar4; i12 = 163; } if (i10 == i12) { while (true) { int i35 = this.L; if (i35 >= this.M) { this.I = 0; return; } else { p(cVar, ((this.L * cVar.f19853e) / 1000) + this.J, this.Q, K(sVar, cVar, this.N[i35], false), 0); this.L++; } } } else { while (true) { int i36 = this.L; if (i36 >= this.M) { return; } int[] iArr3 = this.N; iArr3[i36] = K(sVar, cVar, iArr3[i36], true); this.L++; } } } protected void q(int i10) { m(); if (i10 == 160) { if (this.I != 2) { return; } c cVar = this.f19822c.get(this.O); cVar.f(); if (this.T > 0 && "A_OPUS".equals(cVar.f19850b)) { this.f19837p.Q(ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(this.T).array()); } int i11 = 0; for (int i12 = 0; i12 < this.M; i12++) { i11 += this.N[i12]; } int i13 = 0; while (i13 < this.M) { long j10 = this.J + ((cVar.f19853e * i13) / 1000); int i14 = this.Q; if (i13 == 0 && !this.S) { i14 |= 1; } int i15 = this.N[i13]; int i16 = i11 - i15; p(cVar, j10, i14, i15, i16); i13++; i11 = i16; } this.I = 0; return; } if (i10 == 174) { c cVar2 = (c) v0.a.i(this.f19844w); String str = cVar2.f19850b; if (str == null) { throw z.a("CodecId is missing in TrackEntry element", null); } if (A(str)) { cVar2.i(this.f19825d0, cVar2.f19851c); this.f19822c.put(cVar2.f19851c, cVar2); } this.f19844w = null; return; } if (i10 == 19899) { int i17 = this.f19846y; if (i17 != -1) { long j11 = this.f19847z; if (j11 != -1) { if (i17 == 475249515) { this.B = j11; return; } return; } } throw z.a("Mandatory element SeekID or SeekPosition not found", null); } if (i10 == 25152) { k(i10); c cVar3 = this.f19844w; if (cVar3.f19856h) { if (cVar3.f19858j == null) { throw z.a("Encrypted Track found but ContentEncKeyID was not found", null); } cVar3.f19860l = new l(new l.b(s0.f.f22739a, "video/webm", this.f19844w.f19858j.f27040b)); return; } return; } if (i10 == 28032) { k(i10); c cVar4 = this.f19844w; if (cVar4.f19856h && cVar4.f19857i != null) { throw z.a("Combining encryption and compression is not supported", null); } return; } if (i10 == 357149030) { if (this.f19841t == -9223372036854775807L) { this.f19841t = 1000000L; } long j12 = this.f19842u; if (j12 != -9223372036854775807L) { this.f19843v = G(j12); return; } return; } if (i10 == 374648427) { if (this.f19822c.size() == 0) { throw z.a("No valid tracks were found", null); } this.f19825d0.i(); } else { if (i10 != 475249515) { return; } if (!this.f19845x) { this.f19825d0.u(o(this.E, this.F)); this.f19845x = true; } this.E = null; this.F = null; } } @Override public final void release() { } protected void t(int i10, double d10) { if (i10 == 181) { v(i10).R = (int) d10; return; } if (i10 == 17545) { this.f19842u = (long) d10; return; } switch (i10) { case 21969: v(i10).E = (float) d10; return; case 21970: v(i10).F = (float) d10; return; case 21971: v(i10).G = (float) d10; return; case 21972: v(i10).H = (float) d10; return; case 21973: v(i10).I = (float) d10; return; case 21974: v(i10).J = (float) d10; return; case 21975: v(i10).K = (float) d10; return; case 21976: v(i10).L = (float) d10; return; case 21977: v(i10).M = (float) d10; return; case 21978: v(i10).N = (float) d10; return; default: switch (i10) { case 30323: v(i10).f19868t = (float) d10; return; case 30324: v(i10).f19869u = (float) d10; return; case 30325: v(i10).f19870v = (float) d10; return; default: return; } } } protected c v(int i10) { k(i10); return this.f19844w; } protected int w(int i10) { switch (i10) { case 131: case 136: case 155: case 159: case 176: case 179: case 186: case 215: case 231: case 238: case 241: case 251: case 16871: 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 21938: case 21945: case 21946: case 21947: case 21948: case 21949: case 21998: case 22186: case 22203: case 25188: case 30114: case 30321: case 2352003: case 2807729: return 2; case 134: case 17026: case 21358: case 2274716: return 3; case 160: case 166: case 174: case 183: case 187: case 224: case 225: case 16868: case 18407: case 19899: case 20532: case 20533: case 21936: case 21968: case 25152: case 28032: case 30113: case 30320: case 290298740: case 357149030: case 374648427: case 408125543: case 440786851: case 475249515: case 524531317: return 1; case 161: case 163: case 165: case 16877: case 16981: case 18402: case 21419: case 25506: case 30322: return 4; case 181: case 17545: case 21969: case 21970: case 21971: case 21972: case 21973: case 21974: case 21975: case 21976: case 21977: case 21978: case 30323: case 30324: case 30325: return 5; default: return 0; } } protected void x(c cVar, s sVar, int i10) { if (cVar.f19855g != 1685485123 && cVar.f19855g != 1685480259) { sVar.i(i10); return; } byte[] bArr = new byte[i10]; cVar.O = bArr; sVar.readFully(bArr, 0, i10); } protected void y(c cVar, int i10, s sVar, int i11) { if (i10 != 4 || !"V_VP9".equals(cVar.f19850b)) { sVar.i(i11); } else { this.f19837p.P(i11); sVar.readFully(this.f19837p.e(), 0, i11); } } protected void z(int i10, long j10) { if (i10 == 20529) { if (j10 == 0) { return; } throw z.a("ContentEncodingOrder " + j10 + " not supported", null); } if (i10 == 20530) { if (j10 == 1) { return; } throw z.a("ContentEncodingScope " + j10 + " not supported", null); } switch (i10) { case 131: v(i10).f19852d = (int) j10; return; case 136: v(i10).W = j10 == 1; return; case 155: this.K = G(j10); return; case 159: v(i10).P = (int) j10; return; case 176: v(i10).f19861m = (int) j10; return; case 179: g(i10); this.E.a(G(j10)); return; case 186: v(i10).f19862n = (int) j10; return; case 215: v(i10).f19851c = (int) j10; return; case 231: this.D = G(j10); return; case 238: this.R = (int) j10; return; case 241: if (this.G) { return; } g(i10); this.F.a(j10); this.G = true; return; case 251: this.S = true; return; case 16871: v(i10).f19855g = (int) j10; return; case 16980: if (j10 == 3) { return; } throw z.a("ContentCompAlgo " + j10 + " not supported", null); case 17029: if (j10 < 1 || j10 > 2) { throw z.a("DocTypeReadVersion " + j10 + " not supported", null); } return; case 17143: if (j10 == 1) { return; } throw z.a("EBMLReadVersion " + j10 + " not supported", null); case 18401: if (j10 == 5) { return; } throw z.a("ContentEncAlgo " + j10 + " not supported", null); case 18408: if (j10 == 1) { return; } throw z.a("AESSettingsCipherMode " + j10 + " not supported", null); case 21420: this.f19847z = j10 + this.f19840s; return; case 21432: int i11 = (int) j10; k(i10); if (i11 == 0) { this.f19844w.f19872x = 0; return; } if (i11 == 1) { this.f19844w.f19872x = 2; return; } else if (i11 == 3) { this.f19844w.f19872x = 1; return; } else { if (i11 != 15) { return; } this.f19844w.f19872x = 3; return; } case 21680: v(i10).f19864p = (int) j10; return; case 21682: v(i10).f19866r = (int) j10; return; case 21690: v(i10).f19865q = (int) j10; return; case 21930: v(i10).V = j10 == 1; return; case 21938: k(i10); c cVar = this.f19844w; cVar.f19873y = true; cVar.f19863o = (int) j10; return; case 21998: v(i10).f19854f = (int) j10; return; case 22186: v(i10).S = j10; return; case 22203: v(i10).T = j10; return; case 25188: v(i10).Q = (int) j10; return; case 30114: this.T = j10; return; case 30321: k(i10); int i12 = (int) j10; if (i12 == 0) { this.f19844w.f19867s = 0; return; } if (i12 == 1) { this.f19844w.f19867s = 1; return; } else if (i12 == 2) { this.f19844w.f19867s = 2; return; } else { if (i12 != 3) { return; } this.f19844w.f19867s = 3; return; } case 2352003: v(i10).f19853e = (int) j10; return; case 2807729: this.f19841t = j10; return; default: switch (i10) { case 21945: k(i10); int i13 = (int) j10; if (i13 == 1) { this.f19844w.B = 2; return; } else { if (i13 != 2) { return; } this.f19844w.B = 1; return; } case 21946: k(i10); int k10 = s0.g.k((int) j10); if (k10 != -1) { this.f19844w.A = k10; return; } return; case 21947: k(i10); this.f19844w.f19873y = true; int j11 = s0.g.j((int) j10); if (j11 != -1) { this.f19844w.f19874z = j11; return; } return; case 21948: v(i10).C = (int) j10; return; case 21949: v(i10).D = (int) j10; return; default: return; } } } }