85.12 - Beta (85112)
This commit is contained in:
parent
a2a9f607fc
commit
630bcebe98
|
@ -10,8 +10,8 @@ android {
|
|||
applicationId 'com.discord'
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode 85111
|
||||
versionName "85.11 - Beta"
|
||||
versionCode 85112
|
||||
versionName "85.12 - Beta"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
|
|
@ -1,305 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.util.SparseArray;
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.h;
|
||||
import c.i.a.c.a2.i;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.s;
|
||||
import c.i.a.c.a2.t;
|
||||
import c.i.a.c.i2.e0;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import java.io.IOException;
|
||||
/* compiled from: PsExtractor */
|
||||
public final class b0 implements h {
|
||||
public final e0 a = new e0(0);
|
||||
public final SparseArray<a> b = new SparseArray<>();
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final w f714c = new w(4096);
|
||||
public final a0 d = new a0();
|
||||
public boolean e;
|
||||
public boolean f;
|
||||
public boolean g;
|
||||
public long h;
|
||||
@Nullable
|
||||
public z i;
|
||||
public j j;
|
||||
public boolean k;
|
||||
|
||||
/* compiled from: PsExtractor */
|
||||
public static final class a {
|
||||
public final o a;
|
||||
public final e0 b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final v f715c = new v(new byte[64]);
|
||||
public boolean d;
|
||||
public boolean e;
|
||||
public boolean f;
|
||||
public int g;
|
||||
public long h;
|
||||
|
||||
public a(o oVar, e0 e0Var) {
|
||||
this.a = oVar;
|
||||
this.b = e0Var;
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
d dVar = d.a;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public boolean b(i iVar) throws IOException {
|
||||
byte[] bArr = new byte[14];
|
||||
iVar.n(bArr, 0, 14);
|
||||
if (442 != (((bArr[0] & 255) << 24) | ((bArr[1] & 255) << 16) | ((bArr[2] & 255) << 8) | (bArr[3] & 255)) || (bArr[4] & 196) != 68 || (bArr[6] & 4) != 4 || (bArr[8] & 4) != 4 || (bArr[9] & 1) != 1 || (bArr[12] & 3) != 3) {
|
||||
return false;
|
||||
}
|
||||
iVar.g(bArr[13] & 7);
|
||||
iVar.n(bArr, 0, 3);
|
||||
return 1 == ((((bArr[0] & 255) << 16) | ((bArr[1] & 255) << 8)) | (bArr[2] & 255));
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:98:0x020a */
|
||||
@Override // c.i.a.c.a2.h
|
||||
public int e(i iVar, s sVar) throws IOException {
|
||||
o pVar;
|
||||
AnimatableValueParser.H(this.j);
|
||||
long b = iVar.b();
|
||||
int i = (b > -1 ? 1 : (b == -1 ? 0 : -1));
|
||||
long j = -9223372036854775807L;
|
||||
if (i != 0) {
|
||||
a0 a0Var = this.d;
|
||||
if (!a0Var.f713c) {
|
||||
if (!a0Var.e) {
|
||||
long b2 = iVar.b();
|
||||
int min = (int) Math.min(20000L, b2);
|
||||
long j2 = b2 - ((long) min);
|
||||
if (iVar.getPosition() != j2) {
|
||||
sVar.a = j2;
|
||||
} else {
|
||||
a0Var.b.z(min);
|
||||
iVar.k();
|
||||
iVar.n(a0Var.b.a, 0, min);
|
||||
w wVar = a0Var.b;
|
||||
int i2 = wVar.b;
|
||||
int i3 = wVar.f913c - 4;
|
||||
while (true) {
|
||||
if (i3 < i2) {
|
||||
break;
|
||||
}
|
||||
if (a0Var.b(wVar.a, i3) == 442) {
|
||||
wVar.D(i3 + 4);
|
||||
long c2 = a0.c(wVar);
|
||||
if (c2 != -9223372036854775807L) {
|
||||
j = c2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
i3--;
|
||||
}
|
||||
a0Var.g = j;
|
||||
a0Var.e = true;
|
||||
return 0;
|
||||
}
|
||||
} else if (a0Var.g == -9223372036854775807L) {
|
||||
a0Var.a(iVar);
|
||||
return 0;
|
||||
} else if (!a0Var.d) {
|
||||
int min2 = (int) Math.min(20000L, iVar.b());
|
||||
long j3 = (long) 0;
|
||||
if (iVar.getPosition() != j3) {
|
||||
sVar.a = j3;
|
||||
} else {
|
||||
a0Var.b.z(min2);
|
||||
iVar.k();
|
||||
iVar.n(a0Var.b.a, 0, min2);
|
||||
w wVar2 = a0Var.b;
|
||||
int i4 = wVar2.b;
|
||||
int i5 = wVar2.f913c;
|
||||
while (true) {
|
||||
if (i4 >= i5 - 3) {
|
||||
break;
|
||||
}
|
||||
if (a0Var.b(wVar2.a, i4) == 442) {
|
||||
wVar2.D(i4 + 4);
|
||||
long c3 = a0.c(wVar2);
|
||||
if (c3 != -9223372036854775807L) {
|
||||
j = c3;
|
||||
break;
|
||||
}
|
||||
}
|
||||
i4++;
|
||||
}
|
||||
a0Var.f = j;
|
||||
a0Var.d = true;
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
long j4 = a0Var.f;
|
||||
if (j4 == -9223372036854775807L) {
|
||||
a0Var.a(iVar);
|
||||
return 0;
|
||||
}
|
||||
a0Var.h = a0Var.a.b(a0Var.g) - a0Var.a.b(j4);
|
||||
a0Var.a(iVar);
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
if (!this.k) {
|
||||
this.k = true;
|
||||
a0 a0Var2 = this.d;
|
||||
long j5 = a0Var2.h;
|
||||
if (j5 != -9223372036854775807L) {
|
||||
z zVar = new z(a0Var2.a, j5, b);
|
||||
this.i = zVar;
|
||||
this.j.a(zVar.a);
|
||||
} else {
|
||||
this.j.a(new t.b(j5, 0));
|
||||
}
|
||||
}
|
||||
z zVar2 = this.i;
|
||||
if (zVar2 != null && zVar2.b()) {
|
||||
return this.i.a(iVar, sVar);
|
||||
}
|
||||
iVar.k();
|
||||
long f = i != 0 ? b - iVar.f() : -1;
|
||||
if ((f != -1 && f < 4) || !iVar.e(this.f714c.a, 0, 4, true)) {
|
||||
return -1;
|
||||
}
|
||||
this.f714c.D(0);
|
||||
int f2 = this.f714c.f();
|
||||
if (f2 == 441) {
|
||||
return -1;
|
||||
}
|
||||
if (f2 == 442) {
|
||||
iVar.n(this.f714c.a, 0, 10);
|
||||
this.f714c.D(9);
|
||||
iVar.l((this.f714c.s() & 7) + 14);
|
||||
return 0;
|
||||
} else if (f2 == 443) {
|
||||
iVar.n(this.f714c.a, 0, 2);
|
||||
this.f714c.D(0);
|
||||
iVar.l(this.f714c.x() + 6);
|
||||
return 0;
|
||||
} else if (((f2 & -256) >> 8) != 1) {
|
||||
iVar.l(1);
|
||||
return 0;
|
||||
} else {
|
||||
int i6 = f2 & 255;
|
||||
a aVar = this.b.get(i6);
|
||||
if (!this.e) {
|
||||
if (aVar == null) {
|
||||
o oVar = null;
|
||||
if (i6 == 189) {
|
||||
pVar = new g(null);
|
||||
this.f = true;
|
||||
this.h = iVar.getPosition();
|
||||
} else if ((i6 & 224) == 192) {
|
||||
pVar = new v(null);
|
||||
this.f = true;
|
||||
this.h = iVar.getPosition();
|
||||
} else {
|
||||
if ((i6 & 240) == 224) {
|
||||
pVar = new p(null);
|
||||
this.g = true;
|
||||
this.h = iVar.getPosition();
|
||||
}
|
||||
if (oVar != null) {
|
||||
oVar.e(this.j, new i0.d(Integer.MIN_VALUE, i6, 256));
|
||||
aVar = new a(oVar, this.a);
|
||||
this.b.put(i6, aVar);
|
||||
}
|
||||
}
|
||||
oVar = pVar;
|
||||
if (oVar != null) {
|
||||
}
|
||||
}
|
||||
if (iVar.getPosition() > ((!this.f || !this.g) ? 1048576 : this.h + 8192)) {
|
||||
this.e = true;
|
||||
this.j.j();
|
||||
}
|
||||
}
|
||||
iVar.n(this.f714c.a, 0, 2);
|
||||
this.f714c.D(0);
|
||||
int x2 = this.f714c.x() + 6;
|
||||
if (aVar == null) {
|
||||
iVar.l(x2);
|
||||
return 0;
|
||||
}
|
||||
this.f714c.z(x2);
|
||||
iVar.readFully(this.f714c.a, 0, x2);
|
||||
this.f714c.D(6);
|
||||
w wVar3 = this.f714c;
|
||||
wVar3.e(aVar.f715c.a, 0, 3);
|
||||
aVar.f715c.k(0);
|
||||
aVar.f715c.m(8);
|
||||
aVar.d = aVar.f715c.f();
|
||||
aVar.e = aVar.f715c.f();
|
||||
aVar.f715c.m(6);
|
||||
int g = aVar.f715c.g(8);
|
||||
aVar.g = g;
|
||||
wVar3.e(aVar.f715c.a, 0, g);
|
||||
aVar.f715c.k(0);
|
||||
aVar.h = 0;
|
||||
if (aVar.d) {
|
||||
aVar.f715c.m(4);
|
||||
aVar.f715c.m(1);
|
||||
aVar.f715c.m(1);
|
||||
long g2 = (((long) aVar.f715c.g(3)) << 30) | ((long) (aVar.f715c.g(15) << 15)) | ((long) aVar.f715c.g(15));
|
||||
aVar.f715c.m(1);
|
||||
if (!aVar.f && aVar.e) {
|
||||
aVar.f715c.m(4);
|
||||
aVar.f715c.m(1);
|
||||
aVar.f715c.m(1);
|
||||
aVar.f715c.m(1);
|
||||
aVar.b.b((((long) aVar.f715c.g(3)) << 30) | ((long) (aVar.f715c.g(15) << 15)) | ((long) aVar.f715c.g(15)));
|
||||
aVar.f = true;
|
||||
}
|
||||
aVar.h = aVar.b.b(g2);
|
||||
}
|
||||
aVar.a.f(aVar.h, 4);
|
||||
aVar.a.b(wVar3);
|
||||
aVar.a.d();
|
||||
w wVar4 = this.f714c;
|
||||
wVar4.C(wVar4.a.length);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void f(j jVar) {
|
||||
this.j = jVar;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void g(long j, long j2) {
|
||||
if ((this.a.d() == -9223372036854775807L) || !(this.a.c() == 0 || this.a.c() == j2)) {
|
||||
e0 e0Var = this.a;
|
||||
synchronized (e0Var) {
|
||||
e0Var.a = j2;
|
||||
e0Var.f903c = -9223372036854775807L;
|
||||
}
|
||||
}
|
||||
z zVar = this.i;
|
||||
if (zVar != null) {
|
||||
zVar.e(j2);
|
||||
}
|
||||
for (int i = 0; i < this.b.size(); i++) {
|
||||
a valueAt = this.b.valueAt(i);
|
||||
valueAt.f = false;
|
||||
valueAt.a.c();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void release() {
|
||||
}
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.net.Uri;
|
||||
import c.i.a.c.a2.h;
|
||||
import c.i.a.c.a2.k;
|
||||
import c.i.a.c.a2.l;
|
||||
import java.util.Map;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class c implements l {
|
||||
public static final /* synthetic */ c a = new c();
|
||||
|
||||
@Override // c.i.a.c.a2.l
|
||||
public final h[] a() {
|
||||
return new h[]{new j(0)};
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.l
|
||||
public /* synthetic */ h[] b(Uri uri, Map map) {
|
||||
return k.a(this, uri, map);
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.e0;
|
||||
import c.i.a.c.i2.w;
|
||||
/* compiled from: SectionPayloadReader */
|
||||
public interface c0 {
|
||||
void a(e0 e0Var, j jVar, i0.d dVar);
|
||||
|
||||
void b(w wVar);
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.net.Uri;
|
||||
import c.i.a.c.a2.h;
|
||||
import c.i.a.c.a2.k;
|
||||
import c.i.a.c.a2.l;
|
||||
import java.util.Map;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class d implements l {
|
||||
public static final /* synthetic */ d a = new d();
|
||||
|
||||
@Override // c.i.a.c.a2.l
|
||||
public final h[] a() {
|
||||
return new h[]{new b0()};
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.l
|
||||
public /* synthetic */ h[] b(Uri uri, Map map) {
|
||||
return k.a(this, uri, map);
|
||||
}
|
||||
}
|
|
@ -1,107 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.e0;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.w;
|
||||
/* compiled from: SectionReader */
|
||||
public final class d0 implements i0 {
|
||||
public final c0 a;
|
||||
public final w b = new w(32);
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public int f716c;
|
||||
public int d;
|
||||
public boolean e;
|
||||
public boolean f;
|
||||
|
||||
public d0(c0 c0Var) {
|
||||
this.a = c0Var;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.i0
|
||||
public void a(e0 e0Var, j jVar, i0.d dVar) {
|
||||
this.a.a(e0Var, jVar, dVar);
|
||||
this.f = true;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.i0
|
||||
public void b(w wVar, int i) {
|
||||
boolean z2 = (i & 1) != 0;
|
||||
int s2 = z2 ? wVar.b + wVar.s() : -1;
|
||||
if (this.f) {
|
||||
if (z2) {
|
||||
this.f = false;
|
||||
wVar.D(s2);
|
||||
this.d = 0;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
while (wVar.a() > 0) {
|
||||
int i2 = this.d;
|
||||
if (i2 < 3) {
|
||||
if (i2 == 0) {
|
||||
int s3 = wVar.s();
|
||||
wVar.D(wVar.b - 1);
|
||||
if (s3 == 255) {
|
||||
this.f = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
int min = Math.min(wVar.a(), 3 - this.d);
|
||||
wVar.e(this.b.a, this.d, min);
|
||||
int i3 = this.d + min;
|
||||
this.d = i3;
|
||||
if (i3 == 3) {
|
||||
this.b.D(0);
|
||||
this.b.C(3);
|
||||
this.b.E(1);
|
||||
int s4 = this.b.s();
|
||||
int s5 = this.b.s();
|
||||
this.e = (s4 & 128) != 0;
|
||||
int i4 = (((s4 & 15) << 8) | s5) + 3;
|
||||
this.f716c = i4;
|
||||
byte[] bArr = this.b.a;
|
||||
if (bArr.length < i4) {
|
||||
this.b.b(Math.min(4098, Math.max(i4, bArr.length * 2)));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
int min2 = Math.min(wVar.a(), this.f716c - this.d);
|
||||
wVar.e(this.b.a, this.d, min2);
|
||||
int i5 = this.d + min2;
|
||||
this.d = i5;
|
||||
int i6 = this.f716c;
|
||||
if (i5 != i6) {
|
||||
continue;
|
||||
} else {
|
||||
if (this.e) {
|
||||
byte[] bArr2 = this.b.a;
|
||||
int i7 = f0.a;
|
||||
int i8 = -1;
|
||||
for (int i9 = 0; i9 < i6; i9++) {
|
||||
i8 = f0.k[((i8 >>> 24) ^ (bArr2[i9] & 255)) & 255] ^ (i8 << 8);
|
||||
}
|
||||
if (i8 != 0) {
|
||||
this.f = true;
|
||||
return;
|
||||
}
|
||||
this.b.C(this.f716c - 4);
|
||||
} else {
|
||||
this.b.C(i6);
|
||||
}
|
||||
this.b.D(0);
|
||||
this.a.b(this.b);
|
||||
this.d = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.i0
|
||||
public void c() {
|
||||
this.f = true;
|
||||
}
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.net.Uri;
|
||||
import c.i.a.c.a2.h;
|
||||
import c.i.a.c.a2.k;
|
||||
import c.i.a.c.a2.l;
|
||||
import java.util.Map;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class e implements l {
|
||||
public static final /* synthetic */ e a = new e();
|
||||
|
||||
@Override // c.i.a.c.a2.l
|
||||
public final h[] a() {
|
||||
return new h[]{new h0(1, 0, 112800)};
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.l
|
||||
public /* synthetic */ h[] b(Uri uri, Map map) {
|
||||
return k.a(this, uri, map);
|
||||
}
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.w;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import java.util.List;
|
||||
/* compiled from: SeiReader */
|
||||
public final class e0 {
|
||||
public final List<Format> a;
|
||||
public final w[] b;
|
||||
|
||||
public e0(List<Format> list) {
|
||||
this.a = list;
|
||||
this.b = new w[list.size()];
|
||||
}
|
||||
|
||||
public void a(j jVar, i0.d dVar) {
|
||||
for (int i = 0; i < this.b.length; i++) {
|
||||
dVar.a();
|
||||
w p = jVar.p(dVar.c(), 3);
|
||||
Format format = this.a.get(i);
|
||||
String str = format.t;
|
||||
boolean z2 = "application/cea-608".equals(str) || "application/cea-708".equals(str);
|
||||
AnimatableValueParser.n(z2, "Invalid closed caption mime type provided: " + str);
|
||||
String str2 = format.i;
|
||||
if (str2 == null) {
|
||||
str2 = dVar.b();
|
||||
}
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = str2;
|
||||
bVar.k = str;
|
||||
bVar.d = format.l;
|
||||
bVar.f2216c = format.k;
|
||||
bVar.C = format.L;
|
||||
bVar.m = format.v;
|
||||
p.e(bVar.a());
|
||||
this.b[i] = p;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.h;
|
||||
import c.i.a.c.a2.i;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.s;
|
||||
import c.i.a.c.a2.t;
|
||||
import c.i.a.c.i2.w;
|
||||
import c.i.a.c.v1.l;
|
||||
import java.io.IOException;
|
||||
/* compiled from: Ac3Extractor */
|
||||
public final class f implements h {
|
||||
public final g a = new g(null);
|
||||
public final w b = new w(2786);
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public boolean f717c;
|
||||
|
||||
static {
|
||||
a aVar = a.a;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:7:0x0034, code lost:
|
||||
r14.k();
|
||||
r5 = r5 + 1;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:8:0x003d, code lost:
|
||||
if ((r5 - r3) < 8192) goto L_0x0040;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:9:0x003f, code lost:
|
||||
return false;
|
||||
*/
|
||||
@Override // c.i.a.c.a2.h
|
||||
public boolean b(i iVar) throws IOException {
|
||||
int i;
|
||||
w wVar = new w(10);
|
||||
int i2 = 0;
|
||||
while (true) {
|
||||
iVar.n(wVar.a, 0, 10);
|
||||
wVar.D(0);
|
||||
if (wVar.u() != 4801587) {
|
||||
break;
|
||||
}
|
||||
wVar.E(3);
|
||||
int r = wVar.r();
|
||||
i2 += r + 10;
|
||||
iVar.g(r);
|
||||
}
|
||||
iVar.k();
|
||||
iVar.g(i2);
|
||||
int i3 = i2;
|
||||
while (true) {
|
||||
int i4 = 0;
|
||||
while (true) {
|
||||
iVar.n(wVar.a, 0, 6);
|
||||
wVar.D(0);
|
||||
if (wVar.x() != 2935) {
|
||||
break;
|
||||
}
|
||||
i4++;
|
||||
if (i4 >= 4) {
|
||||
return true;
|
||||
}
|
||||
byte[] bArr = wVar.a;
|
||||
if (bArr.length < 6) {
|
||||
i = -1;
|
||||
} else {
|
||||
i = ((bArr[5] & 248) >> 3) > 10 ? ((((bArr[2] & 7) << 8) | (bArr[3] & 255)) + 1) * 2 : l.a((bArr[4] & 192) >> 6, bArr[4] & 63);
|
||||
}
|
||||
if (i == -1) {
|
||||
return false;
|
||||
}
|
||||
iVar.g(i - 6);
|
||||
}
|
||||
iVar.g(i3);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public int e(i iVar, s sVar) throws IOException {
|
||||
int read = iVar.read(this.b.a, 0, 2786);
|
||||
if (read == -1) {
|
||||
return -1;
|
||||
}
|
||||
this.b.D(0);
|
||||
this.b.C(read);
|
||||
if (!this.f717c) {
|
||||
this.a.l = 0;
|
||||
this.f717c = true;
|
||||
}
|
||||
this.a.b(this.b);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void f(j jVar) {
|
||||
this.a.e(jVar, new i0.d(Integer.MIN_VALUE, 0, 1));
|
||||
jVar.j();
|
||||
jVar.a(new t.b(-9223372036854775807L, 0));
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void g(long j, long j2) {
|
||||
this.f717c = false;
|
||||
this.a.c();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void release() {
|
||||
}
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.a;
|
||||
import c.i.a.c.a2.i;
|
||||
import c.i.a.c.i2.e0;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import java.io.IOException;
|
||||
/* compiled from: TsBinarySearchSeeker */
|
||||
public final class f0 extends c.i.a.c.a2.a {
|
||||
|
||||
/* compiled from: TsBinarySearchSeeker */
|
||||
public static final class a implements a.f {
|
||||
public final e0 a;
|
||||
public final w b = new w();
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final int f718c;
|
||||
public final int d;
|
||||
|
||||
public a(int i, e0 e0Var, int i2) {
|
||||
this.f718c = i;
|
||||
this.a = e0Var;
|
||||
this.d = i2;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.a.f
|
||||
public void a() {
|
||||
this.b.A(c.i.a.c.i2.f0.f);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.a.f
|
||||
public a.e b(i iVar, long j) throws IOException {
|
||||
long position = iVar.getPosition();
|
||||
int min = (int) Math.min((long) this.d, iVar.b() - position);
|
||||
this.b.z(min);
|
||||
iVar.n(this.b.a, 0, min);
|
||||
w wVar = this.b;
|
||||
int i = wVar.f913c;
|
||||
long j2 = -1;
|
||||
long j3 = -1;
|
||||
long j4 = -9223372036854775807L;
|
||||
while (wVar.a() >= 188) {
|
||||
byte[] bArr = wVar.a;
|
||||
int i2 = wVar.b;
|
||||
while (i2 < i && bArr[i2] != 71) {
|
||||
i2++;
|
||||
}
|
||||
int i3 = i2 + 188;
|
||||
if (i3 > i) {
|
||||
break;
|
||||
}
|
||||
long l2 = AnimatableValueParser.l2(wVar, i2, this.f718c);
|
||||
if (l2 != -9223372036854775807L) {
|
||||
long b = this.a.b(l2);
|
||||
if (b > j) {
|
||||
return j4 == -9223372036854775807L ? a.e.a(b, position) : a.e.b(position + j3);
|
||||
}
|
||||
if (100000 + b > j) {
|
||||
return a.e.b(position + ((long) i2));
|
||||
}
|
||||
j4 = b;
|
||||
j3 = (long) i2;
|
||||
}
|
||||
wVar.D(i3);
|
||||
j2 = (long) i3;
|
||||
}
|
||||
return j4 != -9223372036854775807L ? a.e.c(j4, position + j2) : a.e.a;
|
||||
}
|
||||
}
|
||||
|
||||
public f0(e0 e0Var, long j, long j2, int i, int i2) {
|
||||
super(new a.b(), new a(i, e0Var, i2), j, 0, j + 1, 0, j2, 188, 940);
|
||||
}
|
||||
}
|
|
@ -1,366 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import c.i.a.c.v1.l;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
/* compiled from: Ac3Reader */
|
||||
public final class g implements o {
|
||||
public final v a;
|
||||
public final w b;
|
||||
@Nullable
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final String f719c;
|
||||
public String d;
|
||||
public c.i.a.c.a2.w e;
|
||||
public int f = 0;
|
||||
public int g;
|
||||
public boolean h;
|
||||
public long i;
|
||||
public Format j;
|
||||
public int k;
|
||||
public long l;
|
||||
|
||||
public g(@Nullable String str) {
|
||||
v vVar = new v(new byte[128]);
|
||||
this.a = vVar;
|
||||
this.b = new w(vVar.a);
|
||||
this.f719c = str;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:120:0x0209 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:129:0x0225 */
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(w wVar) {
|
||||
int i;
|
||||
int i2;
|
||||
int i3;
|
||||
String str;
|
||||
int i4;
|
||||
int i5;
|
||||
int i6;
|
||||
int i7;
|
||||
int i8;
|
||||
int i9;
|
||||
int i10;
|
||||
int i11;
|
||||
int i12;
|
||||
boolean z2;
|
||||
AnimatableValueParser.H(this.e);
|
||||
while (wVar.a() > 0) {
|
||||
int i13 = this.f;
|
||||
if (i13 == 0) {
|
||||
while (true) {
|
||||
if (wVar.a() <= 0) {
|
||||
z2 = false;
|
||||
break;
|
||||
} else if (!this.h) {
|
||||
this.h = wVar.s() == 11;
|
||||
} else {
|
||||
int s2 = wVar.s();
|
||||
if (s2 == 119) {
|
||||
this.h = false;
|
||||
z2 = true;
|
||||
break;
|
||||
}
|
||||
this.h = s2 == 11;
|
||||
}
|
||||
}
|
||||
if (z2) {
|
||||
this.f = 1;
|
||||
byte[] bArr = this.b.a;
|
||||
bArr[0] = 11;
|
||||
bArr[1] = 119;
|
||||
this.g = 2;
|
||||
}
|
||||
} else if (i13 == 1) {
|
||||
byte[] bArr2 = this.b.a;
|
||||
int min = Math.min(wVar.a(), 128 - this.g);
|
||||
System.arraycopy(wVar.a, wVar.b, bArr2, this.g, min);
|
||||
wVar.b += min;
|
||||
int i14 = this.g + min;
|
||||
this.g = i14;
|
||||
if (i14 == 128) {
|
||||
this.a.k(0);
|
||||
v vVar = this.a;
|
||||
int e = vVar.e();
|
||||
vVar.m(40);
|
||||
boolean z3 = vVar.g(5) > 10;
|
||||
vVar.k(e);
|
||||
int i15 = -1;
|
||||
if (z3) {
|
||||
vVar.m(16);
|
||||
int g = vVar.g(2);
|
||||
if (g == 0) {
|
||||
i15 = 0;
|
||||
} else if (g == 1) {
|
||||
i15 = 1;
|
||||
} else if (g == 2) {
|
||||
i15 = 2;
|
||||
}
|
||||
vVar.m(3);
|
||||
i3 = (vVar.g(11) + 1) * 2;
|
||||
int g2 = vVar.g(2);
|
||||
if (g2 == 3) {
|
||||
i5 = l.f992c[vVar.g(2)];
|
||||
i7 = 6;
|
||||
i6 = 3;
|
||||
} else {
|
||||
int g3 = vVar.g(2);
|
||||
i6 = g3;
|
||||
i7 = l.a[g3];
|
||||
i5 = l.b[g2];
|
||||
}
|
||||
i2 = i7 * 256;
|
||||
int g4 = vVar.g(3);
|
||||
boolean f = vVar.f();
|
||||
i = l.d[g4] + (f ? 1 : 0);
|
||||
vVar.m(10);
|
||||
if (vVar.f()) {
|
||||
vVar.m(8);
|
||||
}
|
||||
if (g4 == 0) {
|
||||
vVar.m(5);
|
||||
if (vVar.f()) {
|
||||
vVar.m(8);
|
||||
}
|
||||
}
|
||||
if (i15 == 1 && vVar.f()) {
|
||||
vVar.m(16);
|
||||
}
|
||||
if (vVar.f()) {
|
||||
if (g4 > 2) {
|
||||
vVar.m(2);
|
||||
}
|
||||
if ((g4 & 1) == 0 || g4 <= 2) {
|
||||
i10 = 6;
|
||||
} else {
|
||||
i10 = 6;
|
||||
vVar.m(6);
|
||||
}
|
||||
if ((g4 & 4) != 0) {
|
||||
vVar.m(i10);
|
||||
}
|
||||
if (f && vVar.f()) {
|
||||
vVar.m(5);
|
||||
}
|
||||
if (i15 == 0) {
|
||||
if (vVar.f()) {
|
||||
i11 = 6;
|
||||
vVar.m(6);
|
||||
} else {
|
||||
i11 = 6;
|
||||
}
|
||||
if (g4 == 0 && vVar.f()) {
|
||||
vVar.m(i11);
|
||||
}
|
||||
if (vVar.f()) {
|
||||
vVar.m(i11);
|
||||
}
|
||||
int g5 = vVar.g(2);
|
||||
if (g5 == 1) {
|
||||
vVar.m(5);
|
||||
} else if (g5 == 2) {
|
||||
vVar.m(12);
|
||||
} else if (g5 == 3) {
|
||||
int g6 = vVar.g(5);
|
||||
if (vVar.f()) {
|
||||
vVar.m(5);
|
||||
if (vVar.f()) {
|
||||
vVar.m(4);
|
||||
}
|
||||
if (vVar.f()) {
|
||||
vVar.m(4);
|
||||
}
|
||||
if (vVar.f()) {
|
||||
vVar.m(4);
|
||||
}
|
||||
if (vVar.f()) {
|
||||
vVar.m(4);
|
||||
}
|
||||
if (vVar.f()) {
|
||||
vVar.m(4);
|
||||
}
|
||||
if (vVar.f()) {
|
||||
vVar.m(4);
|
||||
}
|
||||
if (vVar.f()) {
|
||||
vVar.m(4);
|
||||
}
|
||||
if (vVar.f()) {
|
||||
if (vVar.f()) {
|
||||
vVar.m(4);
|
||||
}
|
||||
if (vVar.f()) {
|
||||
vVar.m(4);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (vVar.f()) {
|
||||
vVar.m(5);
|
||||
if (vVar.f()) {
|
||||
vVar.m(7);
|
||||
if (vVar.f()) {
|
||||
vVar.m(8);
|
||||
i12 = 2;
|
||||
vVar.m((g6 + 2) * 8);
|
||||
vVar.c();
|
||||
if (g4 < i12) {
|
||||
if (vVar.f()) {
|
||||
vVar.m(14);
|
||||
}
|
||||
if (g4 == 0 && vVar.f()) {
|
||||
vVar.m(14);
|
||||
}
|
||||
}
|
||||
if (vVar.f()) {
|
||||
if (i6 == 0) {
|
||||
vVar.m(5);
|
||||
} else {
|
||||
for (int i16 = 0; i16 < i7; i16++) {
|
||||
if (vVar.f()) {
|
||||
vVar.m(5);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
i12 = 2;
|
||||
vVar.m((g6 + 2) * 8);
|
||||
vVar.c();
|
||||
if (g4 < i12) {
|
||||
}
|
||||
if (vVar.f()) {
|
||||
}
|
||||
}
|
||||
i12 = 2;
|
||||
if (g4 < i12) {
|
||||
}
|
||||
if (vVar.f()) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (vVar.f()) {
|
||||
vVar.m(5);
|
||||
if (g4 == 2) {
|
||||
vVar.m(4);
|
||||
}
|
||||
if (g4 >= 6) {
|
||||
vVar.m(2);
|
||||
}
|
||||
if (vVar.f()) {
|
||||
i9 = 8;
|
||||
vVar.m(8);
|
||||
} else {
|
||||
i9 = 8;
|
||||
}
|
||||
if (g4 == 0 && vVar.f()) {
|
||||
vVar.m(i9);
|
||||
}
|
||||
if (g2 < 3) {
|
||||
vVar.l();
|
||||
}
|
||||
}
|
||||
if (i15 == 0 && i6 != 3) {
|
||||
vVar.l();
|
||||
}
|
||||
if (i15 != 2 || (i6 != 3 && !vVar.f())) {
|
||||
i8 = 6;
|
||||
} else {
|
||||
i8 = 6;
|
||||
vVar.m(6);
|
||||
}
|
||||
str = (vVar.f() && vVar.g(i8) == 1 && vVar.g(8) == 1) ? "audio/eac3-joc" : "audio/eac3";
|
||||
i15 = i5;
|
||||
} else {
|
||||
vVar.m(32);
|
||||
int g7 = vVar.g(2);
|
||||
String str2 = g7 == 3 ? null : "audio/ac3";
|
||||
int a = l.a(g7, vVar.g(6));
|
||||
vVar.m(8);
|
||||
int g8 = vVar.g(3);
|
||||
if ((g8 & 1) == 0 || g8 == 1) {
|
||||
i4 = 2;
|
||||
} else {
|
||||
i4 = 2;
|
||||
vVar.m(2);
|
||||
}
|
||||
if ((g8 & 4) != 0) {
|
||||
vVar.m(i4);
|
||||
}
|
||||
if (g8 == i4) {
|
||||
vVar.m(i4);
|
||||
}
|
||||
int[] iArr = l.b;
|
||||
if (g7 < iArr.length) {
|
||||
i15 = iArr[g7];
|
||||
}
|
||||
i = l.d[g8] + (vVar.f() ? 1 : 0);
|
||||
i2 = 1536;
|
||||
str = str2;
|
||||
i3 = a;
|
||||
}
|
||||
Format format = this.j;
|
||||
if (format == null || i != format.G || i15 != format.H || !f0.a(str, format.t)) {
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = this.d;
|
||||
bVar.k = str;
|
||||
bVar.f2218x = i;
|
||||
bVar.f2219y = i15;
|
||||
bVar.f2216c = this.f719c;
|
||||
Format a2 = bVar.a();
|
||||
this.j = a2;
|
||||
this.e.e(a2);
|
||||
}
|
||||
this.k = i3;
|
||||
this.i = (((long) i2) * 1000000) / ((long) this.j.H);
|
||||
this.b.D(0);
|
||||
this.e.c(this.b, 128);
|
||||
this.f = 2;
|
||||
}
|
||||
} else if (i13 == 2) {
|
||||
int min2 = Math.min(wVar.a(), this.k - this.g);
|
||||
this.e.c(wVar, min2);
|
||||
int i17 = this.g + min2;
|
||||
this.g = i17;
|
||||
int i18 = this.k;
|
||||
if (i17 == i18) {
|
||||
this.e.d(this.l, 1, i18, 0, null);
|
||||
this.l += this.i;
|
||||
this.f = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
this.f = 0;
|
||||
this.g = 0;
|
||||
this.h = false;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
dVar.a();
|
||||
this.d = dVar.b();
|
||||
this.e = jVar.p(dVar.c(), 1);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
this.l = j;
|
||||
}
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.i;
|
||||
import c.i.a.c.i2.e0;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.w;
|
||||
/* compiled from: TsDurationReader */
|
||||
public final class g0 {
|
||||
public final int a;
|
||||
public final e0 b = new e0(0);
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final w f720c = new w();
|
||||
public boolean d;
|
||||
public boolean e;
|
||||
public boolean f;
|
||||
public long g = -9223372036854775807L;
|
||||
public long h = -9223372036854775807L;
|
||||
public long i = -9223372036854775807L;
|
||||
|
||||
public g0(int i) {
|
||||
this.a = i;
|
||||
}
|
||||
|
||||
public final int a(i iVar) {
|
||||
this.f720c.A(f0.f);
|
||||
this.d = true;
|
||||
iVar.k();
|
||||
return 0;
|
||||
}
|
||||
}
|
|
@ -1,121 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.i;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.s;
|
||||
import c.i.a.c.a2.t;
|
||||
import c.i.a.c.i2.w;
|
||||
import java.io.IOException;
|
||||
/* compiled from: Ac4Extractor */
|
||||
public final class h implements c.i.a.c.a2.h {
|
||||
public final i a = new i(null);
|
||||
public final w b = new w(16384);
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public boolean f721c;
|
||||
|
||||
static {
|
||||
b bVar = b.a;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:10:0x0045, code lost:
|
||||
return false;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:8:0x003a, code lost:
|
||||
r15.k();
|
||||
r4 = r4 + 1;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:9:0x0043, code lost:
|
||||
if ((r4 - r3) < 8192) goto L_0x0046;
|
||||
*/
|
||||
@Override // c.i.a.c.a2.h
|
||||
public boolean b(i iVar) throws IOException {
|
||||
int i;
|
||||
w wVar = new w(10);
|
||||
int i2 = 0;
|
||||
while (true) {
|
||||
iVar.n(wVar.a, 0, 10);
|
||||
wVar.D(0);
|
||||
if (wVar.u() != 4801587) {
|
||||
break;
|
||||
}
|
||||
wVar.E(3);
|
||||
int r = wVar.r();
|
||||
i2 += r + 10;
|
||||
iVar.g(r);
|
||||
}
|
||||
iVar.k();
|
||||
iVar.g(i2);
|
||||
int i3 = i2;
|
||||
while (true) {
|
||||
int i4 = 0;
|
||||
while (true) {
|
||||
int i5 = 7;
|
||||
iVar.n(wVar.a, 0, 7);
|
||||
wVar.D(0);
|
||||
int x2 = wVar.x();
|
||||
if (x2 != 44096 && x2 != 44097) {
|
||||
break;
|
||||
}
|
||||
i4++;
|
||||
if (i4 >= 4) {
|
||||
return true;
|
||||
}
|
||||
byte[] bArr = wVar.a;
|
||||
if (bArr.length < 7) {
|
||||
i = -1;
|
||||
} else {
|
||||
int i6 = ((bArr[2] & 255) << 8) | (bArr[3] & 255);
|
||||
if (i6 == 65535) {
|
||||
i6 = ((bArr[4] & 255) << 16) | ((bArr[5] & 255) << 8) | (bArr[6] & 255);
|
||||
} else {
|
||||
i5 = 4;
|
||||
}
|
||||
if (x2 == 44097) {
|
||||
i5 += 2;
|
||||
}
|
||||
i = i6 + i5;
|
||||
}
|
||||
if (i == -1) {
|
||||
return false;
|
||||
}
|
||||
iVar.g(i - 7);
|
||||
}
|
||||
iVar.g(i3);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public int e(i iVar, s sVar) throws IOException {
|
||||
int read = iVar.read(this.b.a, 0, 16384);
|
||||
if (read == -1) {
|
||||
return -1;
|
||||
}
|
||||
this.b.D(0);
|
||||
this.b.C(read);
|
||||
if (!this.f721c) {
|
||||
this.a.m = 0;
|
||||
this.f721c = true;
|
||||
}
|
||||
this.a.b(this.b);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void f(j jVar) {
|
||||
this.a.e(jVar, new i0.d(Integer.MIN_VALUE, 0, 1));
|
||||
jVar.j();
|
||||
jVar.a(new t.b(-9223372036854775807L, 0));
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void g(long j, long j2) {
|
||||
this.f721c = false;
|
||||
this.a.c();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void release() {
|
||||
}
|
||||
}
|
|
@ -1,729 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.util.SparseArray;
|
||||
import android.util.SparseBooleanArray;
|
||||
import android.util.SparseIntArray;
|
||||
import c.i.a.c.a2.h;
|
||||
import c.i.a.c.a2.i;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.s;
|
||||
import c.i.a.c.a2.t;
|
||||
import c.i.a.c.i2.e0;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.ParserException;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
/* compiled from: TsExtractor */
|
||||
public final class h0 implements h {
|
||||
public final int a;
|
||||
public final int b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final List<e0> f722c;
|
||||
public final w d;
|
||||
public final SparseIntArray e;
|
||||
public final i0.c f;
|
||||
public final SparseArray<i0> g;
|
||||
public final SparseBooleanArray h;
|
||||
public final SparseBooleanArray i;
|
||||
public final g0 j;
|
||||
public f0 k;
|
||||
public j l;
|
||||
public int m;
|
||||
public boolean n;
|
||||
public boolean o;
|
||||
public boolean p;
|
||||
public i0 q;
|
||||
public int r;
|
||||
|
||||
/* renamed from: s reason: collision with root package name */
|
||||
public int f723s;
|
||||
|
||||
/* compiled from: TsExtractor */
|
||||
public class a implements c0 {
|
||||
public final v a = new v(new byte[4]);
|
||||
|
||||
public a() {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.c0
|
||||
public void a(e0 e0Var, j jVar, i0.d dVar) {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.c0
|
||||
public void b(w wVar) {
|
||||
if (wVar.s() == 0 && (wVar.s() & 128) != 0) {
|
||||
wVar.E(6);
|
||||
int a = wVar.a() / 4;
|
||||
for (int i = 0; i < a; i++) {
|
||||
wVar.d(this.a, 4);
|
||||
int g = this.a.g(16);
|
||||
this.a.m(3);
|
||||
if (g == 0) {
|
||||
this.a.m(13);
|
||||
} else {
|
||||
int g2 = this.a.g(13);
|
||||
if (h0.this.g.get(g2) == null) {
|
||||
h0 h0Var = h0.this;
|
||||
h0Var.g.put(g2, new d0(new b(g2)));
|
||||
h0.this.m++;
|
||||
}
|
||||
}
|
||||
}
|
||||
h0 h0Var2 = h0.this;
|
||||
if (h0Var2.a != 2) {
|
||||
h0Var2.g.remove(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: TsExtractor */
|
||||
public class b implements c0 {
|
||||
public final v a = new v(new byte[5]);
|
||||
public final SparseArray<i0> b = new SparseArray<>();
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final SparseIntArray f724c = new SparseIntArray();
|
||||
public final int d;
|
||||
|
||||
public b(int i) {
|
||||
this.d = i;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.c0
|
||||
public void a(e0 e0Var, j jVar, i0.d dVar) {
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:46:0x013d, code lost:
|
||||
if (r24.s() == r13) goto L_0x013f;
|
||||
*/
|
||||
/* JADX WARNING: Removed duplicated region for block: B:87:0x0222 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:89:0x022f */
|
||||
@Override // c.i.a.c.a2.j0.c0
|
||||
public void b(w wVar) {
|
||||
e0 e0Var;
|
||||
int i;
|
||||
e0 e0Var2;
|
||||
i0 i0Var;
|
||||
int i2;
|
||||
int i3;
|
||||
int i4;
|
||||
e0 e0Var3;
|
||||
if (wVar.s() == 2) {
|
||||
h0 h0Var = h0.this;
|
||||
int i5 = h0Var.a;
|
||||
if (i5 == 1 || i5 == 2 || h0Var.m == 1) {
|
||||
e0Var = h0Var.f722c.get(0);
|
||||
} else {
|
||||
e0Var = new e0(h0Var.f722c.get(0).c());
|
||||
h0.this.f722c.add(e0Var);
|
||||
}
|
||||
if ((wVar.s() & 128) != 0) {
|
||||
wVar.E(1);
|
||||
int x2 = wVar.x();
|
||||
int i6 = 3;
|
||||
wVar.E(3);
|
||||
wVar.d(this.a, 2);
|
||||
this.a.m(3);
|
||||
int i7 = 13;
|
||||
h0.this.f723s = this.a.g(13);
|
||||
wVar.d(this.a, 2);
|
||||
int i8 = 4;
|
||||
this.a.m(4);
|
||||
int i9 = 12;
|
||||
wVar.E(this.a.g(12));
|
||||
h0 h0Var2 = h0.this;
|
||||
int i10 = 21;
|
||||
if (h0Var2.a == 2 && h0Var2.q == null) {
|
||||
i0.b bVar = new i0.b(21, null, null, f0.f);
|
||||
h0 h0Var3 = h0.this;
|
||||
h0Var3.q = h0Var3.f.a(21, bVar);
|
||||
h0 h0Var4 = h0.this;
|
||||
h0Var4.q.a(e0Var, h0Var4.l, new i0.d(x2, 21, 8192));
|
||||
}
|
||||
this.b.clear();
|
||||
this.f724c.clear();
|
||||
int a = wVar.a();
|
||||
while (a > 0) {
|
||||
int i11 = 5;
|
||||
wVar.d(this.a, 5);
|
||||
int g = this.a.g(8);
|
||||
this.a.m(i6);
|
||||
int g2 = this.a.g(i7);
|
||||
this.a.m(i8);
|
||||
int g3 = this.a.g(i9);
|
||||
int i12 = wVar.b;
|
||||
int i13 = g3 + i12;
|
||||
int i14 = -1;
|
||||
String str = null;
|
||||
ArrayList arrayList = null;
|
||||
while (wVar.b < i13) {
|
||||
int s2 = wVar.s();
|
||||
int s3 = wVar.b + wVar.s();
|
||||
if (s3 > i13) {
|
||||
break;
|
||||
}
|
||||
if (s2 == i11) {
|
||||
long t = wVar.t();
|
||||
if (t != 1094921523) {
|
||||
if (t != 1161904947) {
|
||||
if (t != 1094921524) {
|
||||
if (t == 1212503619) {
|
||||
i14 = 36;
|
||||
}
|
||||
i4 = x2;
|
||||
e0Var3 = e0Var;
|
||||
i3 = g2;
|
||||
wVar.E(s3 - wVar.b);
|
||||
e0Var = e0Var3;
|
||||
x2 = i4;
|
||||
g2 = i3;
|
||||
i11 = 5;
|
||||
i10 = 21;
|
||||
}
|
||||
i14 = 172;
|
||||
i4 = x2;
|
||||
e0Var3 = e0Var;
|
||||
i3 = g2;
|
||||
wVar.E(s3 - wVar.b);
|
||||
e0Var = e0Var3;
|
||||
x2 = i4;
|
||||
g2 = i3;
|
||||
i11 = 5;
|
||||
i10 = 21;
|
||||
}
|
||||
i14 = 135;
|
||||
i4 = x2;
|
||||
e0Var3 = e0Var;
|
||||
i3 = g2;
|
||||
wVar.E(s3 - wVar.b);
|
||||
e0Var = e0Var3;
|
||||
x2 = i4;
|
||||
g2 = i3;
|
||||
i11 = 5;
|
||||
i10 = 21;
|
||||
}
|
||||
} else if (s2 != 106) {
|
||||
if (s2 != 122) {
|
||||
if (s2 != 127) {
|
||||
if (s2 == 123) {
|
||||
i14 = 138;
|
||||
} else if (s2 == 10) {
|
||||
str = wVar.p(3).trim();
|
||||
i4 = x2;
|
||||
e0Var3 = e0Var;
|
||||
i3 = g2;
|
||||
wVar.E(s3 - wVar.b);
|
||||
e0Var = e0Var3;
|
||||
x2 = i4;
|
||||
g2 = i3;
|
||||
i11 = 5;
|
||||
i10 = 21;
|
||||
} else {
|
||||
int i15 = 3;
|
||||
if (s2 == 89) {
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
while (wVar.b < s3) {
|
||||
String trim = wVar.p(i15).trim();
|
||||
int s4 = wVar.s();
|
||||
byte[] bArr = new byte[4];
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, 0, 4);
|
||||
wVar.b += 4;
|
||||
arrayList2.add(new i0.a(trim, s4, bArr));
|
||||
e0Var = e0Var;
|
||||
x2 = x2;
|
||||
g2 = g2;
|
||||
i15 = 3;
|
||||
}
|
||||
i4 = x2;
|
||||
e0Var3 = e0Var;
|
||||
i3 = g2;
|
||||
arrayList = arrayList2;
|
||||
i14 = 89;
|
||||
} else {
|
||||
i4 = x2;
|
||||
e0Var3 = e0Var;
|
||||
i3 = g2;
|
||||
if (s2 == 111) {
|
||||
i14 = 257;
|
||||
}
|
||||
}
|
||||
wVar.E(s3 - wVar.b);
|
||||
e0Var = e0Var3;
|
||||
x2 = i4;
|
||||
g2 = i3;
|
||||
i11 = 5;
|
||||
i10 = 21;
|
||||
}
|
||||
}
|
||||
i4 = x2;
|
||||
e0Var3 = e0Var;
|
||||
i3 = g2;
|
||||
wVar.E(s3 - wVar.b);
|
||||
e0Var = e0Var3;
|
||||
x2 = i4;
|
||||
g2 = i3;
|
||||
i11 = 5;
|
||||
i10 = 21;
|
||||
}
|
||||
i14 = 135;
|
||||
i4 = x2;
|
||||
e0Var3 = e0Var;
|
||||
i3 = g2;
|
||||
wVar.E(s3 - wVar.b);
|
||||
e0Var = e0Var3;
|
||||
x2 = i4;
|
||||
g2 = i3;
|
||||
i11 = 5;
|
||||
i10 = 21;
|
||||
}
|
||||
i14 = 129;
|
||||
i4 = x2;
|
||||
e0Var3 = e0Var;
|
||||
i3 = g2;
|
||||
wVar.E(s3 - wVar.b);
|
||||
e0Var = e0Var3;
|
||||
x2 = i4;
|
||||
g2 = i3;
|
||||
i11 = 5;
|
||||
i10 = 21;
|
||||
}
|
||||
wVar.D(i13);
|
||||
i0.b bVar2 = new i0.b(i14, str, arrayList, Arrays.copyOfRange(wVar.a, i12, i13));
|
||||
if (g == 6 || g == 5) {
|
||||
g = i14;
|
||||
}
|
||||
a -= g3 + 5;
|
||||
h0 h0Var5 = h0.this;
|
||||
int i16 = h0Var5.a == 2 ? g : g2;
|
||||
if (!h0Var5.h.get(i16)) {
|
||||
h0 h0Var6 = h0.this;
|
||||
if (h0Var6.a == 2) {
|
||||
if (g == 21) {
|
||||
i0Var = h0Var6.q;
|
||||
if (h0.this.a != 2) {
|
||||
i2 = g2;
|
||||
if (i2 >= this.f724c.get(i16, 8192)) {
|
||||
}
|
||||
} else {
|
||||
i2 = g2;
|
||||
}
|
||||
this.f724c.put(i16, i2);
|
||||
this.b.put(i16, i0Var);
|
||||
}
|
||||
}
|
||||
i0Var = h0Var6.f.a(g, bVar2);
|
||||
if (h0.this.a != 2) {
|
||||
}
|
||||
this.f724c.put(i16, i2);
|
||||
this.b.put(i16, i0Var);
|
||||
}
|
||||
e0Var = e0Var;
|
||||
x2 = x2;
|
||||
i6 = 3;
|
||||
i8 = 4;
|
||||
i7 = 13;
|
||||
i9 = 12;
|
||||
i10 = 21;
|
||||
}
|
||||
int i17 = x2;
|
||||
e0 e0Var4 = e0Var;
|
||||
int size = this.f724c.size();
|
||||
int i18 = 0;
|
||||
while (i18 < size) {
|
||||
int keyAt = this.f724c.keyAt(i18);
|
||||
int valueAt = this.f724c.valueAt(i18);
|
||||
h0.this.h.put(keyAt, true);
|
||||
h0.this.i.put(valueAt, true);
|
||||
i0 valueAt2 = this.b.valueAt(i18);
|
||||
if (valueAt2 != null) {
|
||||
h0 h0Var7 = h0.this;
|
||||
if (valueAt2 != h0Var7.q) {
|
||||
j jVar = h0Var7.l;
|
||||
i = i17;
|
||||
i0.d dVar = new i0.d(i, keyAt, 8192);
|
||||
e0Var2 = e0Var4;
|
||||
valueAt2.a(e0Var2, jVar, dVar);
|
||||
} else {
|
||||
e0Var2 = e0Var4;
|
||||
i = i17;
|
||||
}
|
||||
h0.this.g.put(valueAt, valueAt2);
|
||||
} else {
|
||||
e0Var2 = e0Var4;
|
||||
i = i17;
|
||||
}
|
||||
i18++;
|
||||
e0Var4 = e0Var2;
|
||||
i17 = i;
|
||||
}
|
||||
h0 h0Var8 = h0.this;
|
||||
if (h0Var8.a != 2) {
|
||||
h0Var8.g.remove(this.d);
|
||||
h0 h0Var9 = h0.this;
|
||||
int i19 = h0Var9.a == 1 ? 0 : h0Var9.m - 1;
|
||||
h0Var9.m = i19;
|
||||
if (i19 == 0) {
|
||||
h0Var9.l.j();
|
||||
h0.this.n = true;
|
||||
}
|
||||
} else if (!h0Var8.n) {
|
||||
h0Var8.l.j();
|
||||
h0 h0Var10 = h0.this;
|
||||
h0Var10.m = 0;
|
||||
h0Var10.n = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
e eVar = e.a;
|
||||
}
|
||||
|
||||
public h0(int i, int i2, int i3) {
|
||||
e0 e0Var = new e0(0);
|
||||
l lVar = new l(i2);
|
||||
this.f = lVar;
|
||||
this.b = i3;
|
||||
this.a = i;
|
||||
if (i == 1 || i == 2) {
|
||||
this.f722c = Collections.singletonList(e0Var);
|
||||
} else {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
this.f722c = arrayList;
|
||||
arrayList.add(e0Var);
|
||||
}
|
||||
this.d = new w(new byte[9400], 0);
|
||||
SparseBooleanArray sparseBooleanArray = new SparseBooleanArray();
|
||||
this.h = sparseBooleanArray;
|
||||
this.i = new SparseBooleanArray();
|
||||
SparseArray<i0> sparseArray = new SparseArray<>();
|
||||
this.g = sparseArray;
|
||||
this.e = new SparseIntArray();
|
||||
this.j = new g0(i3);
|
||||
this.f723s = -1;
|
||||
sparseBooleanArray.clear();
|
||||
sparseArray.clear();
|
||||
SparseArray<i0> b2 = lVar.b();
|
||||
int size = b2.size();
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
this.g.put(b2.keyAt(i4), b2.valueAt(i4));
|
||||
}
|
||||
this.g.put(0, new d0(new a()));
|
||||
this.q = null;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public boolean b(i iVar) throws IOException {
|
||||
boolean z2;
|
||||
byte[] bArr = this.d.a;
|
||||
iVar.n(bArr, 0, 940);
|
||||
for (int i = 0; i < 188; i++) {
|
||||
int i2 = 0;
|
||||
while (true) {
|
||||
if (i2 >= 5) {
|
||||
z2 = true;
|
||||
break;
|
||||
} else if (bArr[(i2 * 188) + i] != 71) {
|
||||
z2 = false;
|
||||
break;
|
||||
} else {
|
||||
i2++;
|
||||
}
|
||||
}
|
||||
if (z2) {
|
||||
iVar.l(i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* JADX DEBUG: Multi-variable search result rejected for r9v4, resolved type: android.util.SparseBooleanArray */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARNING: Unknown variable types count: 2 */
|
||||
@Override // c.i.a.c.a2.h
|
||||
public int e(i iVar, s sVar) throws IOException {
|
||||
?? r4;
|
||||
?? r3;
|
||||
int i;
|
||||
boolean z2;
|
||||
int i2;
|
||||
boolean z3;
|
||||
long b2 = iVar.b();
|
||||
if (this.n) {
|
||||
long j = -9223372036854775807L;
|
||||
if ((b2 == -1 || this.a == 2) ? false : true) {
|
||||
g0 g0Var = this.j;
|
||||
if (!g0Var.d) {
|
||||
int i3 = this.f723s;
|
||||
if (i3 <= 0) {
|
||||
g0Var.a(iVar);
|
||||
return 0;
|
||||
}
|
||||
if (!g0Var.f) {
|
||||
long b3 = iVar.b();
|
||||
int min = (int) Math.min((long) g0Var.a, b3);
|
||||
long j2 = b3 - ((long) min);
|
||||
if (iVar.getPosition() != j2) {
|
||||
sVar.a = j2;
|
||||
} else {
|
||||
g0Var.f720c.z(min);
|
||||
iVar.k();
|
||||
iVar.n(g0Var.f720c.a, 0, min);
|
||||
w wVar = g0Var.f720c;
|
||||
int i4 = wVar.b;
|
||||
int i5 = wVar.f913c;
|
||||
while (true) {
|
||||
i5--;
|
||||
if (i5 < i4) {
|
||||
break;
|
||||
} else if (wVar.a[i5] == 71) {
|
||||
long l2 = AnimatableValueParser.l2(wVar, i5, i3);
|
||||
if (l2 != -9223372036854775807L) {
|
||||
j = l2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
g0Var.h = j;
|
||||
g0Var.f = true;
|
||||
return 0;
|
||||
}
|
||||
} else if (g0Var.h == -9223372036854775807L) {
|
||||
g0Var.a(iVar);
|
||||
return 0;
|
||||
} else if (!g0Var.e) {
|
||||
int min2 = (int) Math.min((long) g0Var.a, iVar.b());
|
||||
long j3 = (long) 0;
|
||||
if (iVar.getPosition() != j3) {
|
||||
sVar.a = j3;
|
||||
} else {
|
||||
g0Var.f720c.z(min2);
|
||||
iVar.k();
|
||||
iVar.n(g0Var.f720c.a, 0, min2);
|
||||
w wVar2 = g0Var.f720c;
|
||||
int i6 = wVar2.b;
|
||||
int i7 = wVar2.f913c;
|
||||
while (true) {
|
||||
if (i6 >= i7) {
|
||||
break;
|
||||
}
|
||||
if (wVar2.a[i6] == 71) {
|
||||
long l22 = AnimatableValueParser.l2(wVar2, i6, i3);
|
||||
if (l22 != -9223372036854775807L) {
|
||||
j = l22;
|
||||
break;
|
||||
}
|
||||
}
|
||||
i6++;
|
||||
}
|
||||
g0Var.g = j;
|
||||
g0Var.e = true;
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
long j4 = g0Var.g;
|
||||
if (j4 == -9223372036854775807L) {
|
||||
g0Var.a(iVar);
|
||||
return 0;
|
||||
}
|
||||
g0Var.i = g0Var.b.b(g0Var.h) - g0Var.b.b(j4);
|
||||
g0Var.a(iVar);
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
if (!this.o) {
|
||||
this.o = true;
|
||||
g0 g0Var2 = this.j;
|
||||
long j5 = g0Var2.i;
|
||||
if (j5 != -9223372036854775807L) {
|
||||
f0 f0Var = new f0(g0Var2.b, j5, b2, this.f723s, this.b);
|
||||
this.k = f0Var;
|
||||
this.l.a(f0Var.a);
|
||||
} else {
|
||||
this.l.a(new t.b(j5, 0));
|
||||
}
|
||||
}
|
||||
if (this.p) {
|
||||
z3 = false;
|
||||
this.p = false;
|
||||
g(0, 0);
|
||||
if (iVar.getPosition() != 0) {
|
||||
sVar.a = 0;
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
z3 = false;
|
||||
}
|
||||
r4 = 1;
|
||||
r4 = 1;
|
||||
f0 f0Var2 = this.k;
|
||||
r3 = z3;
|
||||
if (f0Var2 != null) {
|
||||
r3 = z3;
|
||||
if (f0Var2.b()) {
|
||||
return this.k.a(iVar, sVar);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r3 = 0;
|
||||
r4 = 1;
|
||||
}
|
||||
w wVar3 = this.d;
|
||||
byte[] bArr = wVar3.a;
|
||||
if (9400 - wVar3.b < 188) {
|
||||
int a2 = wVar3.a();
|
||||
if (a2 > 0) {
|
||||
System.arraycopy(bArr, this.d.b, bArr, r3, a2);
|
||||
}
|
||||
this.d.B(bArr, a2);
|
||||
}
|
||||
while (true) {
|
||||
if (this.d.a() >= 188) {
|
||||
i = -1;
|
||||
z2 = true;
|
||||
break;
|
||||
}
|
||||
int i8 = this.d.f913c;
|
||||
int read = iVar.read(bArr, i8, 9400 - i8);
|
||||
i = -1;
|
||||
if (read == -1) {
|
||||
z2 = false;
|
||||
break;
|
||||
}
|
||||
this.d.C(i8 + read);
|
||||
}
|
||||
if (!z2) {
|
||||
return i;
|
||||
}
|
||||
w wVar4 = this.d;
|
||||
int i9 = wVar4.b;
|
||||
int i10 = wVar4.f913c;
|
||||
byte[] bArr2 = wVar4.a;
|
||||
int i11 = i9;
|
||||
while (i11 < i10 && bArr2[i11] != 71) {
|
||||
i11++;
|
||||
}
|
||||
this.d.D(i11);
|
||||
int i12 = i11 + 188;
|
||||
if (i12 > i10) {
|
||||
int i13 = (i11 - i9) + this.r;
|
||||
this.r = i13;
|
||||
i2 = 2;
|
||||
if (this.a == 2 && i13 > 376) {
|
||||
throw new ParserException("Cannot find sync byte. Most likely not a Transport Stream.");
|
||||
}
|
||||
} else {
|
||||
i2 = 2;
|
||||
this.r = r3;
|
||||
}
|
||||
w wVar5 = this.d;
|
||||
int i14 = wVar5.f913c;
|
||||
if (i12 > i14) {
|
||||
return r3;
|
||||
}
|
||||
int f = wVar5.f();
|
||||
if ((8388608 & f) != 0) {
|
||||
this.d.D(i12);
|
||||
return r3;
|
||||
}
|
||||
int i15 = (4194304 & f) != 0 ? 1 : 0;
|
||||
int i16 = r3 == true ? 1 : 0;
|
||||
boolean z4 = r3 == true ? 1 : 0;
|
||||
boolean z5 = r3 == true ? 1 : 0;
|
||||
boolean z6 = r3 == true ? 1 : 0;
|
||||
boolean z7 = r3 == true ? 1 : 0;
|
||||
int i17 = i15 | i16;
|
||||
int i18 = (2096896 & f) >> 8;
|
||||
boolean z8 = (f & 32) != 0;
|
||||
i0 i0Var = (f & 16) != 0 ? this.g.get(i18) : null;
|
||||
if (i0Var == null) {
|
||||
this.d.D(i12);
|
||||
return r3;
|
||||
}
|
||||
if (this.a != i2) {
|
||||
int i19 = f & 15;
|
||||
int i20 = this.e.get(i18, i19 - 1);
|
||||
this.e.put(i18, i19);
|
||||
if (i20 == i19) {
|
||||
this.d.D(i12);
|
||||
return r3;
|
||||
} else if (i19 != ((i20 + r4) & 15)) {
|
||||
i0Var.c();
|
||||
}
|
||||
}
|
||||
if (z8) {
|
||||
int s2 = this.d.s();
|
||||
i17 |= (this.d.s() & 64) != 0 ? 2 : 0;
|
||||
w wVar6 = this.d;
|
||||
int i21 = r4 == true ? 1 : 0;
|
||||
int i22 = r4 == true ? 1 : 0;
|
||||
int i23 = r4 == true ? 1 : 0;
|
||||
int i24 = r4 == true ? 1 : 0;
|
||||
wVar6.E(s2 - i21);
|
||||
}
|
||||
boolean z9 = this.n;
|
||||
if (this.a == i2 || z9 || !this.i.get(i18, r3)) {
|
||||
this.d.C(i12);
|
||||
i0Var.b(this.d, i17);
|
||||
this.d.C(i14);
|
||||
}
|
||||
if (this.a != i2 && !z9 && this.n && b2 != -1) {
|
||||
this.p = r4;
|
||||
}
|
||||
this.d.D(i12);
|
||||
int i25 = r3 == true ? 1 : 0;
|
||||
int i26 = r3 == true ? 1 : 0;
|
||||
int i27 = r3 == true ? 1 : 0;
|
||||
int i28 = r3 == true ? 1 : 0;
|
||||
int i29 = r3 == true ? 1 : 0;
|
||||
return i25;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void f(j jVar) {
|
||||
this.l = jVar;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void g(long j, long j2) {
|
||||
f0 f0Var;
|
||||
AnimatableValueParser.D(this.a != 2);
|
||||
int size = this.f722c.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
e0 e0Var = this.f722c.get(i);
|
||||
if ((e0Var.d() == -9223372036854775807L) || !(e0Var.d() == 0 || e0Var.c() == j2)) {
|
||||
synchronized (e0Var) {
|
||||
e0Var.a = j2;
|
||||
e0Var.f903c = -9223372036854775807L;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!(j2 == 0 || (f0Var = this.k) == null)) {
|
||||
f0Var.e(j2);
|
||||
}
|
||||
this.d.z(0);
|
||||
this.e.clear();
|
||||
for (int i2 = 0; i2 < this.g.size(); i2++) {
|
||||
this.g.valueAt(i2).c();
|
||||
}
|
||||
this.r = 0;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void release() {
|
||||
}
|
||||
}
|
|
@ -1,143 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import c.i.a.c.v1.m;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
/* compiled from: Ac4Reader */
|
||||
public final class i implements o {
|
||||
public final v a;
|
||||
public final w b;
|
||||
@Nullable
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final String f725c;
|
||||
public String d;
|
||||
public c.i.a.c.a2.w e;
|
||||
public int f = 0;
|
||||
public int g = 0;
|
||||
public boolean h = false;
|
||||
public boolean i = false;
|
||||
public long j;
|
||||
public Format k;
|
||||
public int l;
|
||||
public long m;
|
||||
|
||||
public i(@Nullable String str) {
|
||||
v vVar = new v(new byte[16]);
|
||||
this.a = vVar;
|
||||
this.b = new w(vVar.a);
|
||||
this.f725c = str;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(w wVar) {
|
||||
int i;
|
||||
boolean z2;
|
||||
int s2;
|
||||
AnimatableValueParser.H(this.e);
|
||||
while (wVar.a() > 0) {
|
||||
int i2 = this.f;
|
||||
boolean z3 = true;
|
||||
if (i2 == 0) {
|
||||
while (true) {
|
||||
i = 65;
|
||||
if (wVar.a() <= 0) {
|
||||
z2 = false;
|
||||
break;
|
||||
} else if (!this.h) {
|
||||
this.h = wVar.s() == 172;
|
||||
} else {
|
||||
s2 = wVar.s();
|
||||
this.h = s2 == 172;
|
||||
if (s2 == 64 || s2 == 65) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.i = s2 == 65;
|
||||
z2 = true;
|
||||
if (z2) {
|
||||
this.f = 1;
|
||||
byte[] bArr = this.b.a;
|
||||
bArr[0] = -84;
|
||||
if (!this.i) {
|
||||
i = 64;
|
||||
}
|
||||
bArr[1] = (byte) i;
|
||||
this.g = 2;
|
||||
}
|
||||
} else if (i2 == 1) {
|
||||
byte[] bArr2 = this.b.a;
|
||||
int min = Math.min(wVar.a(), 16 - this.g);
|
||||
System.arraycopy(wVar.a, wVar.b, bArr2, this.g, min);
|
||||
wVar.b += min;
|
||||
int i3 = this.g + min;
|
||||
this.g = i3;
|
||||
if (i3 != 16) {
|
||||
z3 = false;
|
||||
}
|
||||
if (z3) {
|
||||
this.a.k(0);
|
||||
m.b b = m.b(this.a);
|
||||
Format format = this.k;
|
||||
if (format == null || 2 != format.G || b.a != format.H || !"audio/ac4".equals(format.t)) {
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = this.d;
|
||||
bVar.k = "audio/ac4";
|
||||
bVar.f2218x = 2;
|
||||
bVar.f2219y = b.a;
|
||||
bVar.f2216c = this.f725c;
|
||||
Format a = bVar.a();
|
||||
this.k = a;
|
||||
this.e.e(a);
|
||||
}
|
||||
this.l = b.b;
|
||||
this.j = (((long) b.f993c) * 1000000) / ((long) this.k.H);
|
||||
this.b.D(0);
|
||||
this.e.c(this.b, 16);
|
||||
this.f = 2;
|
||||
}
|
||||
} else if (i2 == 2) {
|
||||
int min2 = Math.min(wVar.a(), this.l - this.g);
|
||||
this.e.c(wVar, min2);
|
||||
int i4 = this.g + min2;
|
||||
this.g = i4;
|
||||
int i5 = this.l;
|
||||
if (i4 == i5) {
|
||||
this.e.d(this.m, 1, i5, 0, null);
|
||||
this.m += this.j;
|
||||
this.f = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
this.f = 0;
|
||||
this.g = 0;
|
||||
this.h = false;
|
||||
this.i = false;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
dVar.a();
|
||||
this.d = dVar.b();
|
||||
this.e = jVar.p(dVar.c(), 1);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
this.m = j;
|
||||
}
|
||||
}
|
|
@ -1,99 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.i2.e0;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.google.android.exoplayer2.ParserException;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
/* compiled from: TsPayloadReader */
|
||||
public interface i0 {
|
||||
|
||||
/* compiled from: TsPayloadReader */
|
||||
public static final class a {
|
||||
public final String a;
|
||||
public final byte[] b;
|
||||
|
||||
public a(String str, int i, byte[] bArr) {
|
||||
this.a = str;
|
||||
this.b = bArr;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: TsPayloadReader */
|
||||
public static final class b {
|
||||
public final int a;
|
||||
@Nullable
|
||||
public final String b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final List<a> f726c;
|
||||
public final byte[] d;
|
||||
|
||||
public b(int i, @Nullable String str, @Nullable List<a> list, byte[] bArr) {
|
||||
this.a = i;
|
||||
this.b = str;
|
||||
this.f726c = list == null ? Collections.emptyList() : Collections.unmodifiableList(list);
|
||||
this.d = bArr;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: TsPayloadReader */
|
||||
public interface c {
|
||||
@Nullable
|
||||
i0 a(int i, b bVar);
|
||||
}
|
||||
|
||||
/* compiled from: TsPayloadReader */
|
||||
public static final class d {
|
||||
public final String a;
|
||||
public final int b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final int f727c;
|
||||
public int d;
|
||||
public String e;
|
||||
|
||||
public d(int i, int i2, int i3) {
|
||||
String str;
|
||||
if (i != Integer.MIN_VALUE) {
|
||||
str = i + "/";
|
||||
} else {
|
||||
str = "";
|
||||
}
|
||||
this.a = str;
|
||||
this.b = i2;
|
||||
this.f727c = i3;
|
||||
this.d = Integer.MIN_VALUE;
|
||||
this.e = "";
|
||||
}
|
||||
|
||||
public void a() {
|
||||
int i = this.d;
|
||||
this.d = i == Integer.MIN_VALUE ? this.b : i + this.f727c;
|
||||
this.e = this.a + this.d;
|
||||
}
|
||||
|
||||
public String b() {
|
||||
if (this.d != Integer.MIN_VALUE) {
|
||||
return this.e;
|
||||
}
|
||||
throw new IllegalStateException("generateNewId() must be called before retrieving ids.");
|
||||
}
|
||||
|
||||
public int c() {
|
||||
int i = this.d;
|
||||
if (i != Integer.MIN_VALUE) {
|
||||
return i;
|
||||
}
|
||||
throw new IllegalStateException("generateNewId() must be called before retrieving ids.");
|
||||
}
|
||||
}
|
||||
|
||||
void a(e0 e0Var, j jVar, d dVar);
|
||||
|
||||
void b(w wVar, int i) throws ParserException;
|
||||
|
||||
void c();
|
||||
}
|
|
@ -1,138 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.h;
|
||||
import c.i.a.c.a2.i;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.s;
|
||||
import c.i.a.c.a2.t;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import java.io.IOException;
|
||||
/* compiled from: AdtsExtractor */
|
||||
public final class j implements h {
|
||||
public final k a = new k(true, null);
|
||||
public final w b = new w(2048);
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final w f728c;
|
||||
public final v d;
|
||||
public c.i.a.c.a2.j e;
|
||||
public long f;
|
||||
public long g = -1;
|
||||
public int h = -1;
|
||||
public boolean i;
|
||||
public boolean j;
|
||||
|
||||
static {
|
||||
c cVar = c.a;
|
||||
}
|
||||
|
||||
public j(int i) {
|
||||
w wVar = new w(10);
|
||||
this.f728c = wVar;
|
||||
this.d = new v(wVar.a);
|
||||
}
|
||||
|
||||
public final int a(i iVar) throws IOException {
|
||||
int i = 0;
|
||||
while (true) {
|
||||
iVar.n(this.f728c.a, 0, 10);
|
||||
this.f728c.D(0);
|
||||
if (this.f728c.u() != 4801587) {
|
||||
break;
|
||||
}
|
||||
this.f728c.E(3);
|
||||
int r = this.f728c.r();
|
||||
i += r + 10;
|
||||
iVar.g(r);
|
||||
}
|
||||
iVar.k();
|
||||
iVar.g(i);
|
||||
if (this.g == -1) {
|
||||
this.g = (long) i;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:4:0x0021, code lost:
|
||||
r9.k();
|
||||
r3 = r3 + 1;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:5:0x002a, code lost:
|
||||
if ((r3 - r0) < 8192) goto L_0x002d;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:6:0x002c, code lost:
|
||||
return false;
|
||||
*/
|
||||
@Override // c.i.a.c.a2.h
|
||||
public boolean b(i iVar) throws IOException {
|
||||
int a = a(iVar);
|
||||
int i = a;
|
||||
while (true) {
|
||||
int i2 = 0;
|
||||
int i3 = 0;
|
||||
while (true) {
|
||||
iVar.n(this.f728c.a, 0, 2);
|
||||
this.f728c.D(0);
|
||||
if (!k.g(this.f728c.x())) {
|
||||
break;
|
||||
}
|
||||
i2++;
|
||||
if (i2 >= 4 && i3 > 188) {
|
||||
return true;
|
||||
}
|
||||
iVar.n(this.f728c.a, 0, 4);
|
||||
this.d.k(14);
|
||||
int g = this.d.g(13);
|
||||
if (g <= 6) {
|
||||
return false;
|
||||
}
|
||||
iVar.g(g - 6);
|
||||
i3 += g;
|
||||
}
|
||||
iVar.g(i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public int e(i iVar, s sVar) throws IOException {
|
||||
AnimatableValueParser.H(this.e);
|
||||
iVar.b();
|
||||
int read = iVar.read(this.b.a, 0, 2048);
|
||||
boolean z2 = read == -1;
|
||||
if (!this.j) {
|
||||
this.e.a(new t.b(-9223372036854775807L, 0));
|
||||
this.j = true;
|
||||
}
|
||||
if (z2) {
|
||||
return -1;
|
||||
}
|
||||
this.b.D(0);
|
||||
this.b.C(read);
|
||||
if (!this.i) {
|
||||
this.a.t = this.f;
|
||||
this.i = true;
|
||||
}
|
||||
this.a.b(this.b);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void f(c.i.a.c.a2.j jVar) {
|
||||
this.e = jVar;
|
||||
this.a.e(jVar, new i0.d(Integer.MIN_VALUE, 0, 1));
|
||||
jVar.j();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void g(long j, long j2) {
|
||||
this.i = false;
|
||||
this.a.c();
|
||||
this.f = j2;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void release() {
|
||||
}
|
||||
}
|
|
@ -1,49 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.w;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import java.util.List;
|
||||
/* compiled from: UserDataReader */
|
||||
public final class j0 {
|
||||
public final List<Format> a;
|
||||
public final w[] b;
|
||||
|
||||
public j0(List<Format> list) {
|
||||
this.a = list;
|
||||
this.b = new w[list.size()];
|
||||
}
|
||||
|
||||
public void a(long j, c.i.a.c.i2.w wVar) {
|
||||
if (wVar.a() >= 9) {
|
||||
int f = wVar.f();
|
||||
int f2 = wVar.f();
|
||||
int s2 = wVar.s();
|
||||
if (f == 434 && f2 == 1195456820 && s2 == 3) {
|
||||
AnimatableValueParser.M(j, wVar, this.b);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void b(j jVar, i0.d dVar) {
|
||||
for (int i = 0; i < this.b.length; i++) {
|
||||
dVar.a();
|
||||
w p = jVar.p(dVar.c(), 3);
|
||||
Format format = this.a.get(i);
|
||||
String str = format.t;
|
||||
boolean z2 = "application/cea-608".equals(str) || "application/cea-708".equals(str);
|
||||
AnimatableValueParser.n(z2, "Invalid closed caption mime type provided: " + str);
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = dVar.b();
|
||||
bVar.k = str;
|
||||
bVar.d = format.l;
|
||||
bVar.f2216c = format.k;
|
||||
bVar.C = format.L;
|
||||
bVar.m = format.v;
|
||||
p.e(bVar.a());
|
||||
this.b[i] = p;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,313 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.util.Log;
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.g;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import c.i.a.c.v1.k;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.ParserException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Objects;
|
||||
/* compiled from: AdtsReader */
|
||||
public final class k implements o {
|
||||
public static final byte[] a = {73, 68, 51};
|
||||
public final boolean b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final v f729c = new v(new byte[7]);
|
||||
public final w d = new w(Arrays.copyOf(a, 10));
|
||||
@Nullable
|
||||
public final String e;
|
||||
public String f;
|
||||
public c.i.a.c.a2.w g;
|
||||
public c.i.a.c.a2.w h;
|
||||
public int i;
|
||||
public int j;
|
||||
public int k;
|
||||
public boolean l;
|
||||
public boolean m;
|
||||
public int n;
|
||||
public int o;
|
||||
public int p;
|
||||
public boolean q;
|
||||
public long r;
|
||||
|
||||
/* renamed from: s reason: collision with root package name */
|
||||
public int f730s;
|
||||
public long t;
|
||||
public c.i.a.c.a2.w u;
|
||||
public long v;
|
||||
|
||||
public k(boolean z2, @Nullable String str) {
|
||||
h();
|
||||
this.n = -1;
|
||||
this.o = -1;
|
||||
this.r = -9223372036854775807L;
|
||||
this.b = z2;
|
||||
this.e = str;
|
||||
}
|
||||
|
||||
public static boolean g(int i) {
|
||||
return (i & 65526) == 65520;
|
||||
}
|
||||
|
||||
public final boolean a(w wVar, byte[] bArr, int i) {
|
||||
int min = Math.min(wVar.a(), i - this.j);
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, this.j, min);
|
||||
wVar.b += min;
|
||||
int i2 = this.j + min;
|
||||
this.j = i2;
|
||||
return i2 == i;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:141:0x026a A[EDGE_INSN: B:141:0x026a->B:92:0x026a ?: BREAK , SYNTHETIC] */
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(w wVar) throws ParserException {
|
||||
int i;
|
||||
int i2;
|
||||
boolean z2;
|
||||
Objects.requireNonNull(this.g);
|
||||
int i3 = f0.a;
|
||||
while (wVar.a() > 0) {
|
||||
int i4 = this.i;
|
||||
int i5 = 13;
|
||||
int i6 = 2;
|
||||
if (i4 == 0) {
|
||||
byte[] bArr = wVar.a;
|
||||
int i7 = wVar.b;
|
||||
int i8 = wVar.f913c;
|
||||
while (true) {
|
||||
if (i7 >= i8) {
|
||||
wVar.D(i7);
|
||||
break;
|
||||
}
|
||||
i = i7 + 1;
|
||||
i2 = bArr[i7] & 255;
|
||||
if (this.k == 512 && g((((byte) i2) & 255) | 65280)) {
|
||||
if (this.m) {
|
||||
break;
|
||||
}
|
||||
int i9 = i - 2;
|
||||
wVar.D(i9 + 1);
|
||||
if (i(wVar, this.f729c.a, 1)) {
|
||||
this.f729c.k(4);
|
||||
int g = this.f729c.g(1);
|
||||
int i10 = this.n;
|
||||
if (i10 == -1 || g == i10) {
|
||||
if (this.o != -1) {
|
||||
if (i(wVar, this.f729c.a, 1)) {
|
||||
this.f729c.k(i6);
|
||||
if (this.f729c.g(4) == this.o) {
|
||||
wVar.D(i9 + 2);
|
||||
}
|
||||
}
|
||||
z2 = true;
|
||||
if (z2) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i(wVar, this.f729c.a, 4)) {
|
||||
this.f729c.k(14);
|
||||
int g2 = this.f729c.g(i5);
|
||||
if (g2 >= 7) {
|
||||
byte[] bArr2 = wVar.a;
|
||||
int i11 = wVar.f913c;
|
||||
int i12 = i9 + g2;
|
||||
if (i12 < i11) {
|
||||
if (bArr2[i12] == -1) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
z2 = true;
|
||||
if (z2) {
|
||||
}
|
||||
}
|
||||
}
|
||||
z2 = false;
|
||||
if (z2) {
|
||||
}
|
||||
}
|
||||
int i13 = this.k;
|
||||
int i14 = i2 | i13;
|
||||
if (i14 == 329) {
|
||||
this.k = 768;
|
||||
} else if (i14 == 511) {
|
||||
this.k = 512;
|
||||
} else if (i14 != 836) {
|
||||
if (i14 == 1075) {
|
||||
this.i = 2;
|
||||
this.j = a.length;
|
||||
this.f730s = 0;
|
||||
this.d.D(0);
|
||||
wVar.D(i);
|
||||
break;
|
||||
} else if (i13 != 256) {
|
||||
this.k = 256;
|
||||
i7 = i - 1;
|
||||
i5 = 13;
|
||||
i6 = 2;
|
||||
}
|
||||
} else {
|
||||
this.k = 1024;
|
||||
}
|
||||
i7 = i;
|
||||
i5 = 13;
|
||||
i6 = 2;
|
||||
}
|
||||
this.p = (i2 & 8) >> 3;
|
||||
this.l = (i2 & 1) == 0;
|
||||
if (!this.m) {
|
||||
this.i = 1;
|
||||
this.j = 0;
|
||||
} else {
|
||||
this.i = 3;
|
||||
this.j = 0;
|
||||
}
|
||||
wVar.D(i);
|
||||
} else if (i4 != 1) {
|
||||
if (i4 != 2) {
|
||||
if (i4 == 3) {
|
||||
if (a(wVar, this.f729c.a, this.l ? 7 : 5)) {
|
||||
this.f729c.k(0);
|
||||
if (!this.q) {
|
||||
int g3 = this.f729c.g(2) + 1;
|
||||
if (g3 != 2) {
|
||||
Log.w("AdtsReader", "Detected audio object type: " + g3 + ", but assuming AAC LC.");
|
||||
g3 = 2;
|
||||
}
|
||||
this.f729c.m(5);
|
||||
int g4 = this.f729c.g(3);
|
||||
int i15 = this.o;
|
||||
byte[] bArr3 = {(byte) (((g3 << 3) & 248) | ((i15 >> 1) & 7)), (byte) (((i15 << 7) & 128) | ((g4 << 3) & 120))};
|
||||
k.b c2 = c.i.a.c.v1.k.c(new v(bArr3), false);
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = this.f;
|
||||
bVar.k = "audio/mp4a-latm";
|
||||
bVar.h = c2.f991c;
|
||||
bVar.f2218x = c2.b;
|
||||
bVar.f2219y = c2.a;
|
||||
bVar.m = Collections.singletonList(bArr3);
|
||||
bVar.f2216c = this.e;
|
||||
Format a2 = bVar.a();
|
||||
this.r = 1024000000 / ((long) a2.H);
|
||||
this.g.e(a2);
|
||||
this.q = true;
|
||||
} else {
|
||||
this.f729c.m(10);
|
||||
}
|
||||
this.f729c.m(4);
|
||||
int g5 = (this.f729c.g(13) - 2) - 5;
|
||||
if (this.l) {
|
||||
g5 -= 2;
|
||||
}
|
||||
c.i.a.c.a2.w wVar2 = this.g;
|
||||
long j = this.r;
|
||||
this.i = 4;
|
||||
this.j = 0;
|
||||
this.u = wVar2;
|
||||
this.v = j;
|
||||
this.f730s = g5;
|
||||
}
|
||||
} else if (i4 == 4) {
|
||||
int min = Math.min(wVar.a(), this.f730s - this.j);
|
||||
this.u.c(wVar, min);
|
||||
int i16 = this.j + min;
|
||||
this.j = i16;
|
||||
int i17 = this.f730s;
|
||||
if (i16 == i17) {
|
||||
this.u.d(this.t, 1, i17, 0, null);
|
||||
this.t += this.v;
|
||||
h();
|
||||
}
|
||||
} else {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
} else if (a(wVar, this.d.a, 10)) {
|
||||
this.h.c(this.d, 10);
|
||||
this.d.D(6);
|
||||
c.i.a.c.a2.w wVar3 = this.h;
|
||||
this.i = 4;
|
||||
this.j = 10;
|
||||
this.u = wVar3;
|
||||
this.v = 0;
|
||||
this.f730s = this.d.r() + 10;
|
||||
}
|
||||
} else if (wVar.a() != 0) {
|
||||
v vVar = this.f729c;
|
||||
vVar.a[0] = wVar.a[wVar.b];
|
||||
vVar.k(2);
|
||||
int g6 = this.f729c.g(4);
|
||||
int i18 = this.o;
|
||||
if (i18 == -1 || g6 == i18) {
|
||||
if (!this.m) {
|
||||
this.m = true;
|
||||
this.n = this.p;
|
||||
this.o = g6;
|
||||
}
|
||||
this.i = 3;
|
||||
this.j = 0;
|
||||
} else {
|
||||
this.m = false;
|
||||
h();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
this.m = false;
|
||||
h();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
dVar.a();
|
||||
this.f = dVar.b();
|
||||
c.i.a.c.a2.w p = jVar.p(dVar.c(), 1);
|
||||
this.g = p;
|
||||
this.u = p;
|
||||
if (this.b) {
|
||||
dVar.a();
|
||||
c.i.a.c.a2.w p2 = jVar.p(dVar.c(), 5);
|
||||
this.h = p2;
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = dVar.b();
|
||||
bVar.k = "application/id3";
|
||||
p2.e(bVar.a());
|
||||
return;
|
||||
}
|
||||
this.h = new g();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
this.t = j;
|
||||
}
|
||||
|
||||
public final void h() {
|
||||
this.i = 0;
|
||||
this.j = 0;
|
||||
this.k = 256;
|
||||
}
|
||||
|
||||
public final boolean i(w wVar, byte[] bArr, int i) {
|
||||
if (wVar.a() < i) {
|
||||
return false;
|
||||
}
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, 0, i);
|
||||
wVar.b += i;
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -1,168 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.util.SparseArray;
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.b.a.c;
|
||||
import c.i.b.b.a;
|
||||
import c.i.b.b.q0;
|
||||
import c.i.b.b.u;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
/* compiled from: DefaultTsPayloadReaderFactory */
|
||||
public final class l implements i0.c {
|
||||
public final int a;
|
||||
public final List<Format> b;
|
||||
|
||||
public l(int i) {
|
||||
a<Object> aVar = u.j;
|
||||
u<Object> uVar = q0.k;
|
||||
this.a = i;
|
||||
this.b = uVar;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.i0.c
|
||||
@Nullable
|
||||
public i0 a(int i, i0.b bVar) {
|
||||
if (i == 2) {
|
||||
return new y(new p(new j0(c(bVar))));
|
||||
}
|
||||
if (i == 3 || i == 4) {
|
||||
return new y(new v(bVar.b));
|
||||
}
|
||||
if (i == 21) {
|
||||
return new y(new t());
|
||||
}
|
||||
if (i != 27) {
|
||||
if (i == 36) {
|
||||
return new y(new s(new e0(c(bVar))));
|
||||
}
|
||||
if (i == 89) {
|
||||
return new y(new n(bVar.f726c));
|
||||
}
|
||||
if (i != 138) {
|
||||
if (i == 172) {
|
||||
return new y(new i(bVar.b));
|
||||
}
|
||||
if (i == 257) {
|
||||
return new d0(new x("application/vnd.dvb.ait"));
|
||||
}
|
||||
if (i != 129) {
|
||||
if (i != 130) {
|
||||
if (i != 134) {
|
||||
if (i != 135) {
|
||||
switch (i) {
|
||||
case 15:
|
||||
if (d(2)) {
|
||||
return null;
|
||||
}
|
||||
return new y(new k(false, bVar.b));
|
||||
case 16:
|
||||
return new y(new q(new j0(c(bVar))));
|
||||
case 17:
|
||||
if (d(2)) {
|
||||
return null;
|
||||
}
|
||||
return new y(new u(bVar.b));
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
} else if (d(16)) {
|
||||
return null;
|
||||
} else {
|
||||
return new d0(new x("application/x-scte35"));
|
||||
}
|
||||
} else if (!d(64)) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return new y(new g(bVar.b));
|
||||
}
|
||||
return new y(new m(bVar.b));
|
||||
} else if (d(4)) {
|
||||
return null;
|
||||
} else {
|
||||
return new y(new r(new e0(c(bVar)), d(1), d(8)));
|
||||
}
|
||||
}
|
||||
|
||||
public SparseArray<i0> b() {
|
||||
return new SparseArray<>();
|
||||
}
|
||||
|
||||
/* JADX DEBUG: Failed to insert an additional move for type inference into block B:42:0x009b */
|
||||
/* JADX DEBUG: Multi-variable search result rejected for r1v1, resolved type: java.util.ArrayList */
|
||||
/* JADX DEBUG: Multi-variable search result rejected for r1v3, resolved type: java.util.ArrayList */
|
||||
/* JADX DEBUG: Multi-variable search result rejected for r1v4, resolved type: java.util.ArrayList */
|
||||
/* JADX DEBUG: Multi-variable search result rejected for r1v5, resolved type: java.util.ArrayList */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public final List<Format> c(i0.b bVar) {
|
||||
String str;
|
||||
int i;
|
||||
if (d(32)) {
|
||||
return this.b;
|
||||
}
|
||||
byte[] bArr = bVar.d;
|
||||
int length = bArr.length;
|
||||
int i2 = 0;
|
||||
ArrayList arrayList = this.b;
|
||||
while (length - i2 > 0) {
|
||||
int i3 = i2 + 1;
|
||||
int i4 = bArr[i2] & 255;
|
||||
int i5 = i3 + 1;
|
||||
int i6 = (bArr[i3] & 255) + i5;
|
||||
boolean z2 = true;
|
||||
if (i4 == 134) {
|
||||
arrayList = new ArrayList();
|
||||
int i7 = i5 + 1;
|
||||
int i8 = bArr[i5] & 255 & 31;
|
||||
int i9 = 0;
|
||||
while (i9 < i8) {
|
||||
String str2 = new String(bArr, i7, 3, c.f1266c);
|
||||
int i10 = i7 + 3;
|
||||
int i11 = i10 + 1;
|
||||
int i12 = bArr[i10] & 255;
|
||||
boolean z3 = (i12 & 128) != 0;
|
||||
if (z3) {
|
||||
i = i12 & 63;
|
||||
str = "application/cea-708";
|
||||
} else {
|
||||
str = "application/cea-608";
|
||||
i = 1;
|
||||
}
|
||||
int i13 = i11 + 1;
|
||||
byte b = (byte) (bArr[i11] & 255);
|
||||
int i14 = i13 + 1;
|
||||
AnimatableValueParser.k(i14 >= 0 && i14 <= length);
|
||||
List<byte[]> list = null;
|
||||
if (z3) {
|
||||
list = Collections.singletonList((b & 64) != 0 ? new byte[]{1} : new byte[]{0});
|
||||
}
|
||||
Format.b bVar2 = new Format.b();
|
||||
bVar2.k = str;
|
||||
bVar2.f2216c = str2;
|
||||
bVar2.C = i;
|
||||
bVar2.m = list;
|
||||
arrayList.add(bVar2.a());
|
||||
i9++;
|
||||
i7 = i14;
|
||||
}
|
||||
}
|
||||
if (i6 < 0 || i6 > length) {
|
||||
z2 = false;
|
||||
}
|
||||
AnimatableValueParser.k(z2);
|
||||
i2 = i6;
|
||||
arrayList = arrayList;
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public final boolean d(int i) {
|
||||
return (i & this.a) != 0;
|
||||
}
|
||||
}
|
|
@ -1,282 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import java.util.Arrays;
|
||||
/* compiled from: DtsReader */
|
||||
public final class m implements o {
|
||||
public final w a = new w(new byte[18]);
|
||||
@Nullable
|
||||
public final String b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public String f731c;
|
||||
public c.i.a.c.a2.w d;
|
||||
public int e = 0;
|
||||
public int f;
|
||||
public int g;
|
||||
public long h;
|
||||
public Format i;
|
||||
public int j;
|
||||
public long k;
|
||||
|
||||
public m(@Nullable String str) {
|
||||
this.b = str;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:65:0x0217 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:68:0x0225 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:76:0x024d */
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(w wVar) {
|
||||
boolean z2;
|
||||
int i;
|
||||
byte b;
|
||||
int i2;
|
||||
int i3;
|
||||
byte b2;
|
||||
byte b3;
|
||||
int i4;
|
||||
byte b4;
|
||||
int i5;
|
||||
byte b5;
|
||||
int i6;
|
||||
v vVar;
|
||||
int i7;
|
||||
int i8;
|
||||
boolean z3;
|
||||
boolean z4;
|
||||
AnimatableValueParser.H(this.d);
|
||||
while (wVar.a() > 0) {
|
||||
int i9 = this.e;
|
||||
int i10 = 8;
|
||||
int i11 = 2;
|
||||
if (i9 == 0) {
|
||||
while (true) {
|
||||
if (wVar.a() <= 0) {
|
||||
z3 = false;
|
||||
break;
|
||||
}
|
||||
int i12 = this.g << 8;
|
||||
this.g = i12;
|
||||
int s2 = i12 | wVar.s();
|
||||
this.g = s2;
|
||||
if (s2 == 2147385345 || s2 == -25230976 || s2 == 536864768 || s2 == -14745368) {
|
||||
z4 = true;
|
||||
continue;
|
||||
} else {
|
||||
z4 = false;
|
||||
continue;
|
||||
}
|
||||
if (z4) {
|
||||
byte[] bArr = this.a.a;
|
||||
bArr[0] = (byte) ((s2 >> 24) & 255);
|
||||
bArr[1] = (byte) ((s2 >> 16) & 255);
|
||||
bArr[2] = (byte) ((s2 >> 8) & 255);
|
||||
bArr[3] = (byte) (s2 & 255);
|
||||
this.f = 4;
|
||||
this.g = 0;
|
||||
z3 = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (z3) {
|
||||
this.e = 1;
|
||||
}
|
||||
} else if (i9 == 1) {
|
||||
byte[] bArr2 = this.a.a;
|
||||
int min = Math.min(wVar.a(), 18 - this.f);
|
||||
System.arraycopy(wVar.a, wVar.b, bArr2, this.f, min);
|
||||
wVar.b += min;
|
||||
int i13 = this.f + min;
|
||||
this.f = i13;
|
||||
if (i13 == 18) {
|
||||
byte[] bArr3 = this.a.a;
|
||||
if (this.i == null) {
|
||||
String str = this.f731c;
|
||||
String str2 = this.b;
|
||||
if (bArr3[0] == Byte.MAX_VALUE) {
|
||||
vVar = new v(bArr3);
|
||||
} else {
|
||||
byte[] copyOf = Arrays.copyOf(bArr3, bArr3.length);
|
||||
if (copyOf[0] == -2 || copyOf[0] == -1) {
|
||||
for (int i14 = 0; i14 < copyOf.length - 1; i14 += 2) {
|
||||
byte b6 = copyOf[i14];
|
||||
int i15 = i14 + 1;
|
||||
copyOf[i14] = copyOf[i15];
|
||||
copyOf[i15] = b6;
|
||||
}
|
||||
}
|
||||
v vVar2 = new v(copyOf);
|
||||
if (copyOf[0] == 31) {
|
||||
v vVar3 = new v(copyOf);
|
||||
while (vVar3.b() >= 16) {
|
||||
vVar3.m(i11);
|
||||
int g = vVar3.g(14) & 16383;
|
||||
int min2 = Math.min(8 - vVar2.f912c, 14);
|
||||
int i16 = vVar2.f912c;
|
||||
int i17 = (8 - i16) - min2;
|
||||
byte[] bArr4 = vVar2.a;
|
||||
int i18 = vVar2.b;
|
||||
bArr4[i18] = (byte) (((65280 >> i16) | ((1 << i17) - 1)) & bArr4[i18]);
|
||||
int i19 = 14 - min2;
|
||||
bArr4[i18] = (byte) (((g >>> i19) << i17) | bArr4[i18]);
|
||||
int i20 = i18 + 1;
|
||||
while (i19 > i10) {
|
||||
i19 -= 8;
|
||||
vVar2.a[i20] = (byte) (g >>> i19);
|
||||
i20++;
|
||||
i10 = 8;
|
||||
}
|
||||
int i21 = 8 - i19;
|
||||
byte[] bArr5 = vVar2.a;
|
||||
bArr5[i20] = (byte) (bArr5[i20] & ((1 << i21) - 1));
|
||||
bArr5[i20] = (byte) (((((1 << i19) - 1) & g) << i21) | bArr5[i20]);
|
||||
vVar2.m(14);
|
||||
vVar2.a();
|
||||
i10 = 8;
|
||||
i11 = 2;
|
||||
}
|
||||
}
|
||||
int length = copyOf.length;
|
||||
vVar2.a = copyOf;
|
||||
vVar2.b = 0;
|
||||
vVar2.f912c = 0;
|
||||
vVar2.d = length;
|
||||
vVar = vVar2;
|
||||
}
|
||||
vVar.m(60);
|
||||
int i22 = c.i.a.c.v1.w.a[vVar.g(6)];
|
||||
int i23 = c.i.a.c.v1.w.b[vVar.g(4)];
|
||||
int g2 = vVar.g(5);
|
||||
int[] iArr = c.i.a.c.v1.w.f1004c;
|
||||
if (g2 >= iArr.length) {
|
||||
i8 = -1;
|
||||
i7 = 2;
|
||||
} else {
|
||||
i7 = 2;
|
||||
i8 = (iArr[g2] * 1000) / 2;
|
||||
}
|
||||
vVar.m(10);
|
||||
int i24 = i22 + (vVar.g(i7) > 0 ? 1 : 0);
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = str;
|
||||
bVar.k = "audio/vnd.dts";
|
||||
bVar.f = i8;
|
||||
bVar.f2218x = i24;
|
||||
bVar.f2219y = i23;
|
||||
bVar.n = null;
|
||||
bVar.f2216c = str2;
|
||||
Format a = bVar.a();
|
||||
this.i = a;
|
||||
this.d.e(a);
|
||||
}
|
||||
byte b7 = bArr3[0];
|
||||
if (b7 != -2) {
|
||||
if (b7 == -1) {
|
||||
i6 = ((3 & bArr3[7]) << 12) | ((bArr3[6] & 255) << 4);
|
||||
b5 = bArr3[9];
|
||||
} else if (b7 != 31) {
|
||||
i4 = 4;
|
||||
i5 = ((3 & bArr3[5]) << 12) | ((bArr3[6] & 255) << 4);
|
||||
b4 = bArr3[7];
|
||||
} else {
|
||||
i6 = ((3 & bArr3[6]) << 12) | ((bArr3[7] & 255) << 4);
|
||||
b5 = bArr3[8];
|
||||
}
|
||||
i = (i6 | ((b5 & 60) >> 2)) + 1;
|
||||
z2 = true;
|
||||
if (z2) {
|
||||
i = (i * 16) / 14;
|
||||
}
|
||||
this.j = i;
|
||||
b = bArr3[0];
|
||||
if (b == -2) {
|
||||
if (b == -1) {
|
||||
b3 = bArr3[7];
|
||||
i2 = (bArr3[4] & 7) << 4;
|
||||
} else if (b != 31) {
|
||||
i2 = (bArr3[4] & 1) << 6;
|
||||
b2 = bArr3[5];
|
||||
} else {
|
||||
i2 = (7 & bArr3[5]) << 4;
|
||||
b3 = bArr3[6];
|
||||
}
|
||||
i3 = b3 & 60;
|
||||
this.h = (long) ((int) ((((long) ((((i3 >> 2) | i2) + 1) * 32)) * 1000000) / ((long) this.i.H)));
|
||||
this.a.D(0);
|
||||
this.d.c(this.a, 18);
|
||||
this.e = 2;
|
||||
} else {
|
||||
i2 = (bArr3[5] & 1) << 6;
|
||||
b2 = bArr3[4];
|
||||
}
|
||||
i3 = b2 & 252;
|
||||
this.h = (long) ((int) ((((long) ((((i3 >> 2) | i2) + 1) * 32)) * 1000000) / ((long) this.i.H)));
|
||||
this.a.D(0);
|
||||
this.d.c(this.a, 18);
|
||||
this.e = 2;
|
||||
} else {
|
||||
i4 = 4;
|
||||
i5 = ((bArr3[4] & 3) << 12) | ((bArr3[7] & 255) << 4);
|
||||
b4 = bArr3[6];
|
||||
}
|
||||
i = (i5 | ((b4 & 240) >> i4)) + 1;
|
||||
z2 = false;
|
||||
if (z2) {
|
||||
}
|
||||
this.j = i;
|
||||
b = bArr3[0];
|
||||
if (b == -2) {
|
||||
}
|
||||
i3 = b2 & 252;
|
||||
this.h = (long) ((int) ((((long) ((((i3 >> 2) | i2) + 1) * 32)) * 1000000) / ((long) this.i.H)));
|
||||
this.a.D(0);
|
||||
this.d.c(this.a, 18);
|
||||
this.e = 2;
|
||||
}
|
||||
} else if (i9 == 2) {
|
||||
int min3 = Math.min(wVar.a(), this.j - this.f);
|
||||
this.d.c(wVar, min3);
|
||||
int i25 = this.f + min3;
|
||||
this.f = i25;
|
||||
int i26 = this.j;
|
||||
if (i25 == i26) {
|
||||
this.d.d(this.k, 1, i26, 0, null);
|
||||
this.k += this.h;
|
||||
this.e = 0;
|
||||
}
|
||||
} else {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
this.e = 0;
|
||||
this.f = 0;
|
||||
this.g = 0;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
dVar.a();
|
||||
this.f731c = dVar.b();
|
||||
this.d = jVar.p(dVar.c(), 1);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
this.k = j;
|
||||
}
|
||||
}
|
|
@ -1,95 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.w;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
/* compiled from: DvbSubtitleReader */
|
||||
public final class n implements o {
|
||||
public final List<i0.a> a;
|
||||
public final w[] b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public boolean f732c;
|
||||
public int d;
|
||||
public int e;
|
||||
public long f;
|
||||
|
||||
public n(List<i0.a> list) {
|
||||
this.a = list;
|
||||
this.b = new w[list.size()];
|
||||
}
|
||||
|
||||
public final boolean a(c.i.a.c.i2.w wVar, int i) {
|
||||
if (wVar.a() == 0) {
|
||||
return false;
|
||||
}
|
||||
if (wVar.s() != i) {
|
||||
this.f732c = false;
|
||||
}
|
||||
this.d--;
|
||||
return this.f732c;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(c.i.a.c.i2.w wVar) {
|
||||
if (!this.f732c) {
|
||||
return;
|
||||
}
|
||||
if (this.d != 2 || a(wVar, 32)) {
|
||||
if (this.d != 1 || a(wVar, 0)) {
|
||||
int i = wVar.b;
|
||||
int a = wVar.a();
|
||||
w[] wVarArr = this.b;
|
||||
for (w wVar2 : wVarArr) {
|
||||
wVar.D(i);
|
||||
wVar2.c(wVar, a);
|
||||
}
|
||||
this.e += a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
this.f732c = false;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
if (this.f732c) {
|
||||
for (w wVar : this.b) {
|
||||
wVar.d(this.f, 1, this.e, 0, null);
|
||||
}
|
||||
this.f732c = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
for (int i = 0; i < this.b.length; i++) {
|
||||
i0.a aVar = this.a.get(i);
|
||||
dVar.a();
|
||||
w p = jVar.p(dVar.c(), 3);
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = dVar.b();
|
||||
bVar.k = "application/dvbsubs";
|
||||
bVar.m = Collections.singletonList(aVar.b);
|
||||
bVar.f2216c = aVar.a;
|
||||
p.e(bVar.a());
|
||||
this.b[i] = p;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
if ((i & 4) != 0) {
|
||||
this.f732c = true;
|
||||
this.f = j;
|
||||
this.e = 0;
|
||||
this.d = 2;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.google.android.exoplayer2.ParserException;
|
||||
/* compiled from: ElementaryStreamReader */
|
||||
public interface o {
|
||||
void b(w wVar) throws ParserException;
|
||||
|
||||
void c();
|
||||
|
||||
void d();
|
||||
|
||||
void e(j jVar, i0.d dVar);
|
||||
|
||||
void f(long j, int i);
|
||||
}
|
|
@ -1,372 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.util.Pair;
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.w;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.u;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Objects;
|
||||
/* compiled from: H262Reader */
|
||||
public final class p implements o {
|
||||
public static final double[] a = {23.976023976023978d, 24.0d, 25.0d, 29.97002997002997d, 30.0d, 50.0d, 59.94005994005994d, 60.0d};
|
||||
public String b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public w f733c;
|
||||
@Nullable
|
||||
public final j0 d;
|
||||
@Nullable
|
||||
public final c.i.a.c.i2.w e;
|
||||
@Nullable
|
||||
public final w f;
|
||||
public final boolean[] g = new boolean[4];
|
||||
public final a h = new a(128);
|
||||
public long i;
|
||||
public boolean j;
|
||||
public boolean k;
|
||||
public long l;
|
||||
public long m;
|
||||
public long n;
|
||||
public long o;
|
||||
public boolean p;
|
||||
public boolean q;
|
||||
|
||||
/* compiled from: H262Reader */
|
||||
public static final class a {
|
||||
public static final byte[] a = {0, 0, 1};
|
||||
public boolean b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public int f734c;
|
||||
public int d;
|
||||
public byte[] e;
|
||||
|
||||
public a(int i) {
|
||||
this.e = new byte[i];
|
||||
}
|
||||
|
||||
public void a(byte[] bArr, int i, int i2) {
|
||||
if (this.b) {
|
||||
int i3 = i2 - i;
|
||||
byte[] bArr2 = this.e;
|
||||
int length = bArr2.length;
|
||||
int i4 = this.f734c;
|
||||
if (length < i4 + i3) {
|
||||
this.e = Arrays.copyOf(bArr2, (i4 + i3) * 2);
|
||||
}
|
||||
System.arraycopy(bArr, i, this.e, this.f734c, i3);
|
||||
this.f734c += i3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public p(@Nullable j0 j0Var) {
|
||||
this.d = j0Var;
|
||||
if (j0Var != null) {
|
||||
this.f = new w(178, 128);
|
||||
this.e = new c.i.a.c.i2.w();
|
||||
return;
|
||||
}
|
||||
this.f = null;
|
||||
this.e = null;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:28:0x0080 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:41:0x00f4 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:53:0x0150 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:64:0x0193 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:66:0x0197 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:80:0x01d1 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:85:0x01eb */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:90:0x0201 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:91:0x0203 */
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(c.i.a.c.i2.w wVar) {
|
||||
int i;
|
||||
int i2;
|
||||
w wVar2;
|
||||
int i3;
|
||||
boolean z2;
|
||||
long j;
|
||||
int i4;
|
||||
boolean z3;
|
||||
float f;
|
||||
int i5;
|
||||
long j2;
|
||||
int i6;
|
||||
float f2;
|
||||
AnimatableValueParser.H(this.f733c);
|
||||
int i7 = wVar.b;
|
||||
int i8 = wVar.f913c;
|
||||
byte[] bArr = wVar.a;
|
||||
this.i += (long) wVar.a();
|
||||
this.f733c.c(wVar, wVar.a());
|
||||
while (true) {
|
||||
int b = u.b(bArr, i7, i8, this.g);
|
||||
if (b == i8) {
|
||||
break;
|
||||
}
|
||||
int i9 = b + 3;
|
||||
int i10 = wVar.a[i9] & 255;
|
||||
int i11 = b - i7;
|
||||
if (!this.k) {
|
||||
if (i11 > 0) {
|
||||
this.h.a(bArr, i7, b);
|
||||
}
|
||||
int i12 = i11 < 0 ? -i11 : 0;
|
||||
a aVar = this.h;
|
||||
if (aVar.b) {
|
||||
int i13 = aVar.f734c - i12;
|
||||
aVar.f734c = i13;
|
||||
if (aVar.d == 0 && i10 == 181) {
|
||||
aVar.d = i13;
|
||||
} else {
|
||||
aVar.b = false;
|
||||
z3 = true;
|
||||
if (z3) {
|
||||
a aVar2 = this.h;
|
||||
String str = this.b;
|
||||
Objects.requireNonNull(str);
|
||||
byte[] copyOf = Arrays.copyOf(aVar2.e, aVar2.f734c);
|
||||
int i14 = copyOf[5] & 255;
|
||||
int i15 = ((copyOf[4] & 255) << 4) | (i14 >> 4);
|
||||
int i16 = ((i14 & 15) << 8) | (copyOf[6] & 255);
|
||||
int i17 = (copyOf[7] & 240) >> 4;
|
||||
if (i17 == 2) {
|
||||
f2 = (float) (i16 * 4);
|
||||
i6 = i15 * 3;
|
||||
} else if (i17 == 3) {
|
||||
f2 = (float) (i16 * 16);
|
||||
i6 = i15 * 9;
|
||||
} else if (i17 != 4) {
|
||||
f = 1.0f;
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = str;
|
||||
bVar.k = "video/mpeg2";
|
||||
bVar.p = i15;
|
||||
bVar.q = i16;
|
||||
bVar.t = f;
|
||||
bVar.m = Collections.singletonList(copyOf);
|
||||
Format a2 = bVar.a();
|
||||
i5 = (copyOf[7] & 15) - 1;
|
||||
if (i5 >= 0) {
|
||||
double[] dArr = a;
|
||||
if (i5 < dArr.length) {
|
||||
double d = dArr[i5];
|
||||
int i18 = aVar2.d + 9;
|
||||
int i19 = (copyOf[i18] & 96) >> 5;
|
||||
int i20 = copyOf[i18] & 31;
|
||||
if (i19 != i20) {
|
||||
i = i10;
|
||||
i2 = i9;
|
||||
d *= (((double) i19) + 1.0d) / ((double) (i20 + 1));
|
||||
} else {
|
||||
i = i10;
|
||||
i2 = i9;
|
||||
}
|
||||
j2 = (long) (1000000.0d / d);
|
||||
Pair create = Pair.create(a2, Long.valueOf(j2));
|
||||
this.f733c.e((Format) create.first);
|
||||
this.l = ((Long) create.second).longValue();
|
||||
this.k = true;
|
||||
wVar2 = this.f;
|
||||
if (wVar2 == null) {
|
||||
if (i11 > 0) {
|
||||
wVar2.a(bArr, i7, b);
|
||||
i4 = 0;
|
||||
} else {
|
||||
i4 = -i11;
|
||||
}
|
||||
if (this.f.b(i4)) {
|
||||
w wVar3 = this.f;
|
||||
int e = u.e(wVar3.d, wVar3.e);
|
||||
c.i.a.c.i2.w wVar4 = this.e;
|
||||
int i21 = f0.a;
|
||||
wVar4.B(this.f.d, e);
|
||||
this.d.a(this.o, this.e);
|
||||
}
|
||||
i3 = i;
|
||||
if (i3 == 178 && wVar.a[b + 2] == 1) {
|
||||
this.f.d(i3);
|
||||
}
|
||||
} else {
|
||||
i3 = i;
|
||||
}
|
||||
if (i3 != 0 || i3 == 179) {
|
||||
int i22 = i8 - b;
|
||||
if (this.j && this.q && this.k) {
|
||||
this.f733c.d(this.o, this.p ? 1 : 0, ((int) (this.i - this.n)) - i22, i22, null);
|
||||
}
|
||||
z2 = this.j;
|
||||
if (z2 || this.q) {
|
||||
this.n = this.i - ((long) i22);
|
||||
j = this.m;
|
||||
if (j == -9223372036854775807L) {
|
||||
j = z2 ? this.o + this.l : 0;
|
||||
}
|
||||
this.o = j;
|
||||
this.p = false;
|
||||
this.m = -9223372036854775807L;
|
||||
this.j = true;
|
||||
}
|
||||
this.q = i3 != 0;
|
||||
} else if (i3 == 184) {
|
||||
this.p = true;
|
||||
}
|
||||
i7 = i2;
|
||||
}
|
||||
}
|
||||
i = i10;
|
||||
i2 = i9;
|
||||
j2 = 0;
|
||||
Pair create = Pair.create(a2, Long.valueOf(j2));
|
||||
this.f733c.e((Format) create.first);
|
||||
this.l = ((Long) create.second).longValue();
|
||||
this.k = true;
|
||||
wVar2 = this.f;
|
||||
if (wVar2 == null) {
|
||||
}
|
||||
if (i3 != 0) {
|
||||
}
|
||||
int i22 = i8 - b;
|
||||
this.f733c.d(this.o, this.p ? 1 : 0, ((int) (this.i - this.n)) - i22, i22, null);
|
||||
z2 = this.j;
|
||||
if (z2) {
|
||||
}
|
||||
this.n = this.i - ((long) i22);
|
||||
j = this.m;
|
||||
if (j == -9223372036854775807L) {
|
||||
}
|
||||
this.o = j;
|
||||
this.p = false;
|
||||
this.m = -9223372036854775807L;
|
||||
this.j = true;
|
||||
this.q = i3 != 0;
|
||||
i7 = i2;
|
||||
} else {
|
||||
f2 = (float) (i16 * 121);
|
||||
i6 = i15 * 100;
|
||||
}
|
||||
f = f2 / ((float) i6);
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = str;
|
||||
bVar.k = "video/mpeg2";
|
||||
bVar.p = i15;
|
||||
bVar.q = i16;
|
||||
bVar.t = f;
|
||||
bVar.m = Collections.singletonList(copyOf);
|
||||
Format a2 = bVar.a();
|
||||
i5 = (copyOf[7] & 15) - 1;
|
||||
if (i5 >= 0) {
|
||||
}
|
||||
i = i10;
|
||||
i2 = i9;
|
||||
j2 = 0;
|
||||
Pair create = Pair.create(a2, Long.valueOf(j2));
|
||||
this.f733c.e((Format) create.first);
|
||||
this.l = ((Long) create.second).longValue();
|
||||
this.k = true;
|
||||
wVar2 = this.f;
|
||||
if (wVar2 == null) {
|
||||
}
|
||||
if (i3 != 0) {
|
||||
}
|
||||
int i22 = i8 - b;
|
||||
this.f733c.d(this.o, this.p ? 1 : 0, ((int) (this.i - this.n)) - i22, i22, null);
|
||||
z2 = this.j;
|
||||
if (z2) {
|
||||
}
|
||||
this.n = this.i - ((long) i22);
|
||||
j = this.m;
|
||||
if (j == -9223372036854775807L) {
|
||||
}
|
||||
this.o = j;
|
||||
this.p = false;
|
||||
this.m = -9223372036854775807L;
|
||||
this.j = true;
|
||||
this.q = i3 != 0;
|
||||
i7 = i2;
|
||||
}
|
||||
}
|
||||
} else if (i10 == 179) {
|
||||
aVar.b = true;
|
||||
}
|
||||
byte[] bArr2 = a.a;
|
||||
aVar.a(bArr2, 0, bArr2.length);
|
||||
z3 = false;
|
||||
if (z3) {
|
||||
}
|
||||
}
|
||||
i = i10;
|
||||
i2 = i9;
|
||||
wVar2 = this.f;
|
||||
if (wVar2 == null) {
|
||||
}
|
||||
if (i3 != 0) {
|
||||
}
|
||||
int i22 = i8 - b;
|
||||
this.f733c.d(this.o, this.p ? 1 : 0, ((int) (this.i - this.n)) - i22, i22, null);
|
||||
z2 = this.j;
|
||||
if (z2) {
|
||||
}
|
||||
this.n = this.i - ((long) i22);
|
||||
j = this.m;
|
||||
if (j == -9223372036854775807L) {
|
||||
}
|
||||
this.o = j;
|
||||
this.p = false;
|
||||
this.m = -9223372036854775807L;
|
||||
this.j = true;
|
||||
this.q = i3 != 0;
|
||||
i7 = i2;
|
||||
}
|
||||
if (!this.k) {
|
||||
this.h.a(bArr, i7, i8);
|
||||
}
|
||||
w wVar5 = this.f;
|
||||
if (wVar5 != null) {
|
||||
wVar5.a(bArr, i7, i8);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
u.a(this.g);
|
||||
a aVar = this.h;
|
||||
aVar.b = false;
|
||||
aVar.f734c = 0;
|
||||
aVar.d = 0;
|
||||
w wVar = this.f;
|
||||
if (wVar != null) {
|
||||
wVar.c();
|
||||
}
|
||||
this.i = 0;
|
||||
this.j = false;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
dVar.a();
|
||||
this.b = dVar.b();
|
||||
this.f733c = jVar.p(dVar.c(), 2);
|
||||
j0 j0Var = this.d;
|
||||
if (j0Var != null) {
|
||||
j0Var.b(jVar, dVar);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
this.m = j;
|
||||
}
|
||||
}
|
|
@ -1,500 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.util.Log;
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.u;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Objects;
|
||||
/* compiled from: H263Reader */
|
||||
public final class q implements o {
|
||||
public static final float[] a = {1.0f, 1.0f, 1.0909091f, 0.90909094f, 1.4545455f, 1.2121212f, 1.0f};
|
||||
@Nullable
|
||||
public final j0 b;
|
||||
@Nullable
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final w f735c = new w();
|
||||
public final boolean[] d = new boolean[4];
|
||||
public final a e = new a(128);
|
||||
@Nullable
|
||||
public final w f = new w(178, 128);
|
||||
public b g;
|
||||
public long h;
|
||||
public String i;
|
||||
public c.i.a.c.a2.w j;
|
||||
public boolean k;
|
||||
public long l;
|
||||
|
||||
/* compiled from: H263Reader */
|
||||
public static final class a {
|
||||
public static final byte[] a = {0, 0, 1};
|
||||
public boolean b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public int f736c;
|
||||
public int d;
|
||||
public int e;
|
||||
public byte[] f;
|
||||
|
||||
public a(int i) {
|
||||
this.f = new byte[i];
|
||||
}
|
||||
|
||||
public void a(byte[] bArr, int i, int i2) {
|
||||
if (this.b) {
|
||||
int i3 = i2 - i;
|
||||
byte[] bArr2 = this.f;
|
||||
int length = bArr2.length;
|
||||
int i4 = this.d;
|
||||
if (length < i4 + i3) {
|
||||
this.f = Arrays.copyOf(bArr2, (i4 + i3) * 2);
|
||||
}
|
||||
System.arraycopy(bArr, i, this.f, this.d, i3);
|
||||
this.d += i3;
|
||||
}
|
||||
}
|
||||
|
||||
public void b() {
|
||||
this.b = false;
|
||||
this.d = 0;
|
||||
this.f736c = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: H263Reader */
|
||||
public static final class b {
|
||||
public final c.i.a.c.a2.w a;
|
||||
public boolean b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public boolean f737c;
|
||||
public boolean d;
|
||||
public int e;
|
||||
public int f;
|
||||
public long g;
|
||||
public long h;
|
||||
|
||||
public b(c.i.a.c.a2.w wVar) {
|
||||
this.a = wVar;
|
||||
}
|
||||
|
||||
public void a(byte[] bArr, int i, int i2) {
|
||||
if (this.f737c) {
|
||||
int i3 = this.f;
|
||||
int i4 = (i + 1) - i3;
|
||||
if (i4 < i2) {
|
||||
this.d = ((bArr[i4] & 192) >> 6) == 0;
|
||||
this.f737c = false;
|
||||
return;
|
||||
}
|
||||
this.f = (i2 - i) + i3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public q(@Nullable j0 j0Var) {
|
||||
this.b = j0Var;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:103:0x0264 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:106:0x0271 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:112:0x027d */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:113:0x027f */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:49:0x00d2 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:65:0x0140 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:70:0x017b */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:73:0x0192 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:83:0x01ec */
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(w wVar) {
|
||||
int i;
|
||||
int i2;
|
||||
w wVar2;
|
||||
long j;
|
||||
b bVar;
|
||||
int i3;
|
||||
boolean z2;
|
||||
float f;
|
||||
AnimatableValueParser.H(this.g);
|
||||
AnimatableValueParser.H(this.j);
|
||||
int i4 = wVar.b;
|
||||
int i5 = wVar.f913c;
|
||||
byte[] bArr = wVar.a;
|
||||
this.h += (long) wVar.a();
|
||||
this.j.c(wVar, wVar.a());
|
||||
while (true) {
|
||||
int b2 = u.b(bArr, i4, i5, this.d);
|
||||
if (b2 == i5) {
|
||||
if (!this.k) {
|
||||
this.e.a(bArr, i4, i5);
|
||||
}
|
||||
this.g.a(bArr, i4, i5);
|
||||
w wVar3 = this.f;
|
||||
if (wVar3 != null) {
|
||||
wVar3.a(bArr, i4, i5);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int i6 = b2 + 3;
|
||||
int i7 = wVar.a[i6] & 255;
|
||||
int i8 = b2 - i4;
|
||||
if (!this.k) {
|
||||
if (i8 > 0) {
|
||||
this.e.a(bArr, i4, b2);
|
||||
}
|
||||
int i9 = i8 < 0 ? -i8 : 0;
|
||||
a aVar = this.e;
|
||||
int i10 = aVar.f736c;
|
||||
if (i10 != 0) {
|
||||
if (i10 != 1) {
|
||||
if (i10 != 2) {
|
||||
if (i10 != 3) {
|
||||
if (i10 != 4) {
|
||||
throw new IllegalStateException();
|
||||
} else if (i7 == 179 || i7 == 181) {
|
||||
aVar.d -= i9;
|
||||
aVar.b = false;
|
||||
z2 = true;
|
||||
if (z2) {
|
||||
c.i.a.c.a2.w wVar4 = this.j;
|
||||
a aVar2 = this.e;
|
||||
int i11 = aVar2.e;
|
||||
String str = this.i;
|
||||
Objects.requireNonNull(str);
|
||||
byte[] copyOf = Arrays.copyOf(aVar2.f, aVar2.d);
|
||||
v vVar = new v(copyOf);
|
||||
vVar.n(i11);
|
||||
vVar.n(4);
|
||||
vVar.l();
|
||||
vVar.m(8);
|
||||
if (vVar.f()) {
|
||||
vVar.m(4);
|
||||
vVar.m(3);
|
||||
}
|
||||
int g = vVar.g(4);
|
||||
i = i6;
|
||||
if (g == 15) {
|
||||
int g2 = vVar.g(8);
|
||||
int g3 = vVar.g(8);
|
||||
if (g3 == 0) {
|
||||
Log.w("H263Reader", "Invalid aspect ratio");
|
||||
i2 = i5;
|
||||
} else {
|
||||
f = ((float) g2) / ((float) g3);
|
||||
i2 = i5;
|
||||
if (vVar.f()) {
|
||||
vVar.m(2);
|
||||
vVar.m(1);
|
||||
if (vVar.f()) {
|
||||
vVar.m(15);
|
||||
vVar.l();
|
||||
vVar.m(15);
|
||||
vVar.l();
|
||||
vVar.m(15);
|
||||
vVar.l();
|
||||
vVar.m(3);
|
||||
vVar.m(11);
|
||||
vVar.l();
|
||||
vVar.m(15);
|
||||
vVar.l();
|
||||
}
|
||||
}
|
||||
if (vVar.g(2) != 0) {
|
||||
Log.w("H263Reader", "Unhandled video object layer shape");
|
||||
}
|
||||
vVar.l();
|
||||
int g4 = vVar.g(16);
|
||||
vVar.l();
|
||||
if (vVar.f()) {
|
||||
if (g4 == 0) {
|
||||
Log.w("H263Reader", "Invalid vop_increment_time_resolution");
|
||||
} else {
|
||||
int i12 = 0;
|
||||
for (int i13 = g4 - 1; i13 > 0; i13 >>= 1) {
|
||||
i12++;
|
||||
}
|
||||
vVar.m(i12);
|
||||
}
|
||||
}
|
||||
vVar.l();
|
||||
int g5 = vVar.g(13);
|
||||
vVar.l();
|
||||
int g6 = vVar.g(13);
|
||||
vVar.l();
|
||||
vVar.l();
|
||||
Format.b bVar2 = new Format.b();
|
||||
bVar2.a = str;
|
||||
bVar2.k = "video/mp4v-es";
|
||||
bVar2.p = g5;
|
||||
bVar2.q = g6;
|
||||
bVar2.t = f;
|
||||
bVar2.m = Collections.singletonList(copyOf);
|
||||
wVar4.e(bVar2.a());
|
||||
this.k = true;
|
||||
this.g.a(bArr, i4, b2);
|
||||
wVar2 = this.f;
|
||||
if (wVar2 != null) {
|
||||
if (i8 > 0) {
|
||||
wVar2.a(bArr, i4, b2);
|
||||
i3 = 0;
|
||||
} else {
|
||||
i3 = -i8;
|
||||
}
|
||||
if (this.f.b(i3)) {
|
||||
w wVar5 = this.f;
|
||||
int e = u.e(wVar5.d, wVar5.e);
|
||||
w wVar6 = this.f735c;
|
||||
int i14 = f0.a;
|
||||
wVar6.B(this.f.d, e);
|
||||
this.b.a(this.l, this.f735c);
|
||||
}
|
||||
if (i7 == 178) {
|
||||
if (wVar.a[b2 + 2] == 1) {
|
||||
this.f.d(i7);
|
||||
}
|
||||
int i15 = i2 - b2;
|
||||
j = this.h - ((long) i15);
|
||||
bVar = this.g;
|
||||
boolean z3 = this.k;
|
||||
if (bVar.e == 182 && z3 && bVar.b) {
|
||||
bVar.a.d(bVar.h, bVar.d ? 1 : 0, (int) (j - bVar.g), i15, null);
|
||||
}
|
||||
if (bVar.e != 179) {
|
||||
bVar.g = j;
|
||||
}
|
||||
b bVar3 = this.g;
|
||||
long j2 = this.l;
|
||||
bVar3.e = i7;
|
||||
bVar3.d = false;
|
||||
bVar3.b = i7 != 182 || i7 == 179;
|
||||
bVar3.f737c = i7 == 182;
|
||||
bVar3.f = 0;
|
||||
bVar3.h = j2;
|
||||
i5 = i2;
|
||||
i4 = i;
|
||||
}
|
||||
}
|
||||
int i15 = i2 - b2;
|
||||
j = this.h - ((long) i15);
|
||||
bVar = this.g;
|
||||
boolean z3 = this.k;
|
||||
bVar.a.d(bVar.h, bVar.d ? 1 : 0, (int) (j - bVar.g), i15, null);
|
||||
if (bVar.e != 179) {
|
||||
}
|
||||
b bVar3 = this.g;
|
||||
long j2 = this.l;
|
||||
bVar3.e = i7;
|
||||
bVar3.d = false;
|
||||
bVar3.b = i7 != 182 || i7 == 179;
|
||||
bVar3.f737c = i7 == 182;
|
||||
bVar3.f = 0;
|
||||
bVar3.h = j2;
|
||||
i5 = i2;
|
||||
i4 = i;
|
||||
}
|
||||
} else {
|
||||
float[] fArr = a;
|
||||
i2 = i5;
|
||||
if (g < fArr.length) {
|
||||
f = fArr[g];
|
||||
if (vVar.f()) {
|
||||
}
|
||||
if (vVar.g(2) != 0) {
|
||||
}
|
||||
vVar.l();
|
||||
int g4 = vVar.g(16);
|
||||
vVar.l();
|
||||
if (vVar.f()) {
|
||||
}
|
||||
vVar.l();
|
||||
int g5 = vVar.g(13);
|
||||
vVar.l();
|
||||
int g6 = vVar.g(13);
|
||||
vVar.l();
|
||||
vVar.l();
|
||||
Format.b bVar2 = new Format.b();
|
||||
bVar2.a = str;
|
||||
bVar2.k = "video/mp4v-es";
|
||||
bVar2.p = g5;
|
||||
bVar2.q = g6;
|
||||
bVar2.t = f;
|
||||
bVar2.m = Collections.singletonList(copyOf);
|
||||
wVar4.e(bVar2.a());
|
||||
this.k = true;
|
||||
this.g.a(bArr, i4, b2);
|
||||
wVar2 = this.f;
|
||||
if (wVar2 != null) {
|
||||
}
|
||||
int i15 = i2 - b2;
|
||||
j = this.h - ((long) i15);
|
||||
bVar = this.g;
|
||||
boolean z3 = this.k;
|
||||
bVar.a.d(bVar.h, bVar.d ? 1 : 0, (int) (j - bVar.g), i15, null);
|
||||
if (bVar.e != 179) {
|
||||
}
|
||||
b bVar3 = this.g;
|
||||
long j2 = this.l;
|
||||
bVar3.e = i7;
|
||||
bVar3.d = false;
|
||||
bVar3.b = i7 != 182 || i7 == 179;
|
||||
bVar3.f737c = i7 == 182;
|
||||
bVar3.f = 0;
|
||||
bVar3.h = j2;
|
||||
i5 = i2;
|
||||
i4 = i;
|
||||
} else {
|
||||
Log.w("H263Reader", "Invalid aspect ratio");
|
||||
}
|
||||
}
|
||||
f = 1.0f;
|
||||
if (vVar.f()) {
|
||||
}
|
||||
if (vVar.g(2) != 0) {
|
||||
}
|
||||
vVar.l();
|
||||
int g4 = vVar.g(16);
|
||||
vVar.l();
|
||||
if (vVar.f()) {
|
||||
}
|
||||
vVar.l();
|
||||
int g5 = vVar.g(13);
|
||||
vVar.l();
|
||||
int g6 = vVar.g(13);
|
||||
vVar.l();
|
||||
vVar.l();
|
||||
Format.b bVar2 = new Format.b();
|
||||
bVar2.a = str;
|
||||
bVar2.k = "video/mp4v-es";
|
||||
bVar2.p = g5;
|
||||
bVar2.q = g6;
|
||||
bVar2.t = f;
|
||||
bVar2.m = Collections.singletonList(copyOf);
|
||||
wVar4.e(bVar2.a());
|
||||
this.k = true;
|
||||
this.g.a(bArr, i4, b2);
|
||||
wVar2 = this.f;
|
||||
if (wVar2 != null) {
|
||||
}
|
||||
int i15 = i2 - b2;
|
||||
j = this.h - ((long) i15);
|
||||
bVar = this.g;
|
||||
boolean z3 = this.k;
|
||||
bVar.a.d(bVar.h, bVar.d ? 1 : 0, (int) (j - bVar.g), i15, null);
|
||||
if (bVar.e != 179) {
|
||||
}
|
||||
b bVar3 = this.g;
|
||||
long j2 = this.l;
|
||||
bVar3.e = i7;
|
||||
bVar3.d = false;
|
||||
bVar3.b = i7 != 182 || i7 == 179;
|
||||
bVar3.f737c = i7 == 182;
|
||||
bVar3.f = 0;
|
||||
bVar3.h = j2;
|
||||
i5 = i2;
|
||||
i4 = i;
|
||||
}
|
||||
}
|
||||
} else if ((i7 & 240) != 32) {
|
||||
Log.w("H263Reader", "Unexpected start code value");
|
||||
aVar.b();
|
||||
} else {
|
||||
aVar.e = aVar.d;
|
||||
aVar.f736c = 4;
|
||||
}
|
||||
} else if (i7 > 31) {
|
||||
Log.w("H263Reader", "Unexpected start code value");
|
||||
aVar.b();
|
||||
} else {
|
||||
aVar.f736c = 3;
|
||||
}
|
||||
} else if (i7 != 181) {
|
||||
Log.w("H263Reader", "Unexpected start code value");
|
||||
aVar.b();
|
||||
} else {
|
||||
aVar.f736c = 2;
|
||||
}
|
||||
} else if (i7 == 176) {
|
||||
aVar.f736c = 1;
|
||||
aVar.b = true;
|
||||
}
|
||||
byte[] bArr2 = a.a;
|
||||
aVar.a(bArr2, 0, bArr2.length);
|
||||
z2 = false;
|
||||
if (z2) {
|
||||
}
|
||||
}
|
||||
i2 = i5;
|
||||
i = i6;
|
||||
this.g.a(bArr, i4, b2);
|
||||
wVar2 = this.f;
|
||||
if (wVar2 != null) {
|
||||
}
|
||||
int i15 = i2 - b2;
|
||||
j = this.h - ((long) i15);
|
||||
bVar = this.g;
|
||||
boolean z3 = this.k;
|
||||
bVar.a.d(bVar.h, bVar.d ? 1 : 0, (int) (j - bVar.g), i15, null);
|
||||
if (bVar.e != 179) {
|
||||
}
|
||||
b bVar3 = this.g;
|
||||
long j2 = this.l;
|
||||
bVar3.e = i7;
|
||||
bVar3.d = false;
|
||||
bVar3.b = i7 != 182 || i7 == 179;
|
||||
bVar3.f737c = i7 == 182;
|
||||
bVar3.f = 0;
|
||||
bVar3.h = j2;
|
||||
i5 = i2;
|
||||
i4 = i;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
u.a(this.d);
|
||||
this.e.b();
|
||||
b bVar = this.g;
|
||||
if (bVar != null) {
|
||||
bVar.b = false;
|
||||
bVar.f737c = false;
|
||||
bVar.d = false;
|
||||
bVar.e = -1;
|
||||
}
|
||||
w wVar = this.f;
|
||||
if (wVar != null) {
|
||||
wVar.c();
|
||||
}
|
||||
this.h = 0;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
dVar.a();
|
||||
this.i = dVar.b();
|
||||
c.i.a.c.a2.w p = jVar.p(dVar.c(), 2);
|
||||
this.j = p;
|
||||
this.g = new b(p);
|
||||
j0 j0Var = this.b;
|
||||
if (j0Var != null) {
|
||||
j0Var.b(jVar, dVar);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
this.l = j;
|
||||
}
|
||||
}
|
|
@ -1,603 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.util.SparseArray;
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.w;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.h;
|
||||
import c.i.a.c.i2.u;
|
||||
import c.i.a.c.i2.x;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
||||
/* compiled from: H264Reader */
|
||||
public final class r implements o {
|
||||
public final e0 a;
|
||||
public final boolean b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final boolean f738c;
|
||||
public final w d = new w(7, 128);
|
||||
public final w e = new w(8, 128);
|
||||
public final w f = new w(6, 128);
|
||||
public long g;
|
||||
public final boolean[] h = new boolean[3];
|
||||
public String i;
|
||||
public w j;
|
||||
public b k;
|
||||
public boolean l;
|
||||
public long m;
|
||||
public boolean n;
|
||||
public final c.i.a.c.i2.w o = new c.i.a.c.i2.w();
|
||||
|
||||
/* compiled from: H264Reader */
|
||||
public static final class b {
|
||||
public final w a;
|
||||
public final boolean b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final boolean f739c;
|
||||
public final SparseArray<u.b> d = new SparseArray<>();
|
||||
public final SparseArray<u.a> e = new SparseArray<>();
|
||||
public final x f;
|
||||
public byte[] g;
|
||||
public int h;
|
||||
public int i;
|
||||
public long j;
|
||||
public boolean k;
|
||||
public long l;
|
||||
public a m = new a(null);
|
||||
public a n = new a(null);
|
||||
public boolean o;
|
||||
public long p;
|
||||
public long q;
|
||||
public boolean r;
|
||||
|
||||
/* compiled from: H264Reader */
|
||||
public static final class a {
|
||||
public boolean a;
|
||||
public boolean b;
|
||||
@Nullable
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public u.b f740c;
|
||||
public int d;
|
||||
public int e;
|
||||
public int f;
|
||||
public int g;
|
||||
public boolean h;
|
||||
public boolean i;
|
||||
public boolean j;
|
||||
public boolean k;
|
||||
public int l;
|
||||
public int m;
|
||||
public int n;
|
||||
public int o;
|
||||
public int p;
|
||||
|
||||
public a(a aVar) {
|
||||
}
|
||||
}
|
||||
|
||||
public b(w wVar, boolean z2, boolean z3) {
|
||||
this.a = wVar;
|
||||
this.b = z2;
|
||||
this.f739c = z3;
|
||||
byte[] bArr = new byte[128];
|
||||
this.g = bArr;
|
||||
this.f = new x(bArr, 0, 0);
|
||||
this.k = false;
|
||||
this.o = false;
|
||||
a aVar = this.n;
|
||||
aVar.b = false;
|
||||
aVar.a = false;
|
||||
}
|
||||
}
|
||||
|
||||
public r(e0 e0Var, boolean z2, boolean z3) {
|
||||
this.a = e0Var;
|
||||
this.b = z2;
|
||||
this.f738c = z3;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:44:0x011e */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:45:0x0120 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:47:0x0123 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:50:0x0134 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:53:0x0139 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:63:0x0169 */
|
||||
@RequiresNonNull({"sampleReader"})
|
||||
public final void a(byte[] bArr, int i, int i2) {
|
||||
boolean z2;
|
||||
boolean z3;
|
||||
boolean z4;
|
||||
boolean z5;
|
||||
int i3;
|
||||
int i4;
|
||||
int i5;
|
||||
int i6;
|
||||
int i7;
|
||||
int i8;
|
||||
int i9;
|
||||
int i10;
|
||||
if (!this.l || this.k.f739c) {
|
||||
this.d.a(bArr, i, i2);
|
||||
this.e.a(bArr, i, i2);
|
||||
}
|
||||
this.f.a(bArr, i, i2);
|
||||
b bVar = this.k;
|
||||
if (bVar.k) {
|
||||
int i11 = i2 - i;
|
||||
byte[] bArr2 = bVar.g;
|
||||
int length = bArr2.length;
|
||||
int i12 = bVar.h + i11;
|
||||
if (length < i12) {
|
||||
bVar.g = Arrays.copyOf(bArr2, i12 * 2);
|
||||
}
|
||||
System.arraycopy(bArr, i, bVar.g, bVar.h, i11);
|
||||
int i13 = bVar.h + i11;
|
||||
bVar.h = i13;
|
||||
bVar.f.h(bVar.g, 0, i13);
|
||||
if (bVar.f.b(8)) {
|
||||
bVar.f.j();
|
||||
int e = bVar.f.e(2);
|
||||
bVar.f.k(5);
|
||||
if (bVar.f.c()) {
|
||||
bVar.f.f();
|
||||
if (bVar.f.c()) {
|
||||
int f = bVar.f.f();
|
||||
if (!bVar.f739c) {
|
||||
bVar.k = false;
|
||||
b.a aVar = bVar.n;
|
||||
aVar.e = f;
|
||||
aVar.b = true;
|
||||
} else if (bVar.f.c()) {
|
||||
int f2 = bVar.f.f();
|
||||
if (bVar.e.indexOfKey(f2) < 0) {
|
||||
bVar.k = false;
|
||||
return;
|
||||
}
|
||||
u.a aVar2 = bVar.e.get(f2);
|
||||
u.b bVar2 = bVar.d.get(aVar2.b);
|
||||
if (bVar2.h) {
|
||||
if (bVar.f.b(2)) {
|
||||
bVar.f.k(2);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (bVar.f.b(bVar2.j)) {
|
||||
int e2 = bVar.f.e(bVar2.j);
|
||||
if (bVar2.i) {
|
||||
z4 = false;
|
||||
} else if (bVar.f.b(1)) {
|
||||
z4 = bVar.f.d();
|
||||
if (z4) {
|
||||
if (bVar.f.b(1)) {
|
||||
z3 = bVar.f.d();
|
||||
z2 = true;
|
||||
z5 = bVar.i != 5;
|
||||
if (z5) {
|
||||
i3 = 0;
|
||||
} else if (bVar.f.c()) {
|
||||
i3 = bVar.f.f();
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
i4 = bVar2.k;
|
||||
if (i4 == 0) {
|
||||
if (i4 != 1 || bVar2.m) {
|
||||
i9 = 0;
|
||||
} else if (bVar.f.c()) {
|
||||
i9 = bVar.f.g();
|
||||
if (aVar2.f910c && !z4) {
|
||||
if (bVar.f.c()) {
|
||||
i7 = bVar.f.g();
|
||||
i5 = 0;
|
||||
i6 = i9;
|
||||
i8 = 0;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
i6 = i9;
|
||||
i8 = 0;
|
||||
i7 = 0;
|
||||
i5 = 0;
|
||||
} else if (bVar.f.b(bVar2.l)) {
|
||||
i8 = bVar.f.e(bVar2.l);
|
||||
if (!aVar2.f910c || z4) {
|
||||
i10 = 0;
|
||||
} else if (bVar.f.c()) {
|
||||
i10 = bVar.f.g();
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
i5 = i10;
|
||||
i7 = 0;
|
||||
i6 = 0;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
b.a aVar3 = bVar.n;
|
||||
aVar3.f740c = bVar2;
|
||||
aVar3.d = e;
|
||||
aVar3.e = f;
|
||||
aVar3.f = e2;
|
||||
aVar3.g = f2;
|
||||
aVar3.h = z4;
|
||||
aVar3.i = z2;
|
||||
aVar3.j = z3;
|
||||
aVar3.k = z5;
|
||||
aVar3.l = i3;
|
||||
aVar3.m = i8;
|
||||
aVar3.n = i5;
|
||||
aVar3.o = i6;
|
||||
aVar3.p = i7;
|
||||
aVar3.a = true;
|
||||
aVar3.b = true;
|
||||
bVar.k = false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
z3 = false;
|
||||
z2 = false;
|
||||
if (bVar.i != 5) {
|
||||
}
|
||||
if (z5) {
|
||||
}
|
||||
i4 = bVar2.k;
|
||||
if (i4 == 0) {
|
||||
}
|
||||
b.a aVar3 = bVar.n;
|
||||
aVar3.f740c = bVar2;
|
||||
aVar3.d = e;
|
||||
aVar3.e = f;
|
||||
aVar3.f = e2;
|
||||
aVar3.g = f2;
|
||||
aVar3.h = z4;
|
||||
aVar3.i = z2;
|
||||
aVar3.j = z3;
|
||||
aVar3.k = z5;
|
||||
aVar3.l = i3;
|
||||
aVar3.m = i8;
|
||||
aVar3.n = i5;
|
||||
aVar3.o = i6;
|
||||
aVar3.p = i7;
|
||||
aVar3.a = true;
|
||||
aVar3.b = true;
|
||||
bVar.k = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:113:0x027a, code lost:
|
||||
if (r6 != 1) goto L_0x027e;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:52:0x01ac, code lost:
|
||||
if (r7.j == r10.j) goto L_0x01ae;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:56:0x01b6, code lost:
|
||||
if (r14 != 0) goto L_0x01b8;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:64:0x01ca, code lost:
|
||||
if (r7.n == r10.n) goto L_0x01cc;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:72:0x01dd, code lost:
|
||||
if (r7.p == r10.p) goto L_0x01df;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:77:0x01eb, code lost:
|
||||
if (r7.l == r10.l) goto L_0x01ee;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:80:0x01f1, code lost:
|
||||
if (r7 == false) goto L_0x0225;
|
||||
*/
|
||||
/* JADX WARNING: Removed duplicated region for block: B:104:0x024f */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:112:0x0279 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:114:0x027d */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:117:0x0282 A[ADDED_TO_REGION] */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:124:0x029a A[SYNTHETIC] */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:32:0x0142 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:35:0x0170 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:88:0x022a */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:97:0x0241 A[ADDED_TO_REGION] */
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(c.i.a.c.i2.w wVar) {
|
||||
byte[] bArr;
|
||||
int i;
|
||||
b bVar;
|
||||
boolean z2;
|
||||
b bVar2;
|
||||
int i2;
|
||||
boolean z3;
|
||||
AnimatableValueParser.H(this.j);
|
||||
int i3 = f0.a;
|
||||
int i4 = wVar.b;
|
||||
int i5 = wVar.f913c;
|
||||
byte[] bArr2 = wVar.a;
|
||||
this.g += (long) wVar.a();
|
||||
this.j.c(wVar, wVar.a());
|
||||
while (true) {
|
||||
int b2 = u.b(bArr2, i4, i5, this.h);
|
||||
if (b2 == i5) {
|
||||
a(bArr2, i4, i5);
|
||||
return;
|
||||
}
|
||||
int i6 = b2 + 3;
|
||||
int i7 = bArr2[i6] & 31;
|
||||
int i8 = b2 - i4;
|
||||
if (i8 > 0) {
|
||||
a(bArr2, i4, b2);
|
||||
}
|
||||
int i9 = i5 - b2;
|
||||
long j = this.g - ((long) i9);
|
||||
int i10 = i8 < 0 ? -i8 : 0;
|
||||
long j2 = this.m;
|
||||
if (!this.l || this.k.f739c) {
|
||||
this.d.b(i10);
|
||||
this.e.b(i10);
|
||||
if (this.l) {
|
||||
i = i5;
|
||||
bArr = bArr2;
|
||||
w wVar2 = this.d;
|
||||
if (wVar2.f747c) {
|
||||
u.b d = u.d(wVar2.d, 3, wVar2.e);
|
||||
this.k.d.append(d.d, d);
|
||||
this.d.c();
|
||||
} else {
|
||||
w wVar3 = this.e;
|
||||
if (wVar3.f747c) {
|
||||
u.a c2 = u.c(wVar3.d, 3, wVar3.e);
|
||||
this.k.e.append(c2.a, c2);
|
||||
this.e.c();
|
||||
}
|
||||
}
|
||||
} else if (this.d.f747c && this.e.f747c) {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
w wVar4 = this.d;
|
||||
arrayList.add(Arrays.copyOf(wVar4.d, wVar4.e));
|
||||
w wVar5 = this.e;
|
||||
arrayList.add(Arrays.copyOf(wVar5.d, wVar5.e));
|
||||
w wVar6 = this.d;
|
||||
u.b d2 = u.d(wVar6.d, 3, wVar6.e);
|
||||
w wVar7 = this.e;
|
||||
u.a c3 = u.c(wVar7.d, 3, wVar7.e);
|
||||
i = i5;
|
||||
String a2 = h.a(d2.a, d2.b, d2.f911c);
|
||||
w wVar8 = this.j;
|
||||
Format.b bVar3 = new Format.b();
|
||||
bArr = bArr2;
|
||||
bVar3.a = this.i;
|
||||
bVar3.k = "video/avc";
|
||||
bVar3.h = a2;
|
||||
bVar3.p = d2.e;
|
||||
bVar3.q = d2.f;
|
||||
bVar3.t = d2.g;
|
||||
bVar3.m = arrayList;
|
||||
wVar8.e(bVar3.a());
|
||||
this.l = true;
|
||||
this.k.d.append(d2.d, d2);
|
||||
this.k.e.append(c3.a, c3);
|
||||
this.d.c();
|
||||
this.e.c();
|
||||
}
|
||||
if (this.f.b(i10)) {
|
||||
w wVar9 = this.f;
|
||||
this.o.B(this.f.d, u.e(wVar9.d, wVar9.e));
|
||||
this.o.D(4);
|
||||
AnimatableValueParser.L(j2, this.o, this.a.b);
|
||||
}
|
||||
bVar = this.k;
|
||||
boolean z4 = this.l;
|
||||
boolean z5 = this.n;
|
||||
if (bVar.i != 9) {
|
||||
if (bVar.f739c) {
|
||||
b.a aVar = bVar.n;
|
||||
b.a aVar2 = bVar.m;
|
||||
if (aVar.a) {
|
||||
if (aVar2.a) {
|
||||
u.b bVar4 = aVar.f740c;
|
||||
AnimatableValueParser.H(bVar4);
|
||||
u.b bVar5 = aVar2.f740c;
|
||||
AnimatableValueParser.H(bVar5);
|
||||
if (aVar.f == aVar2.f) {
|
||||
if (aVar.g == aVar2.g) {
|
||||
if (aVar.h == aVar2.h) {
|
||||
if (aVar.i) {
|
||||
if (aVar2.i) {
|
||||
}
|
||||
}
|
||||
int i11 = aVar.d;
|
||||
int i12 = aVar2.d;
|
||||
if (i11 != i12) {
|
||||
if (i11 != 0) {
|
||||
}
|
||||
}
|
||||
int i13 = bVar4.k;
|
||||
if (i13 == 0) {
|
||||
if (bVar5.k == 0) {
|
||||
if (aVar.m == aVar2.m) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (i13 == 1) {
|
||||
if (bVar5.k == 1) {
|
||||
if (aVar.o == aVar2.o) {
|
||||
}
|
||||
}
|
||||
}
|
||||
boolean z6 = aVar.k;
|
||||
if (z6 == aVar2.k) {
|
||||
if (z6) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
z3 = true;
|
||||
}
|
||||
z3 = false;
|
||||
}
|
||||
if (bVar.b) {
|
||||
b.a aVar3 = bVar.n;
|
||||
z5 = aVar3.b && ((i2 = aVar3.e) == 7 || i2 == 2);
|
||||
}
|
||||
boolean z7 = bVar.r;
|
||||
int i14 = bVar.i;
|
||||
z2 = z7 | (i14 != 5 || (z5 && i14 == 1));
|
||||
bVar.r = z2;
|
||||
if (z2) {
|
||||
this.n = false;
|
||||
}
|
||||
long j3 = this.m;
|
||||
if (!this.l || this.k.f739c) {
|
||||
this.d.d(i7);
|
||||
this.e.d(i7);
|
||||
}
|
||||
this.f.d(i7);
|
||||
bVar2 = this.k;
|
||||
bVar2.i = i7;
|
||||
bVar2.l = j3;
|
||||
bVar2.j = j;
|
||||
int i15 = bVar2.b ? 1 : 1;
|
||||
if (bVar2.f739c) {
|
||||
if (!(i7 == 5 || i7 == i15 || i7 == 2)) {
|
||||
}
|
||||
b.a aVar4 = bVar2.m;
|
||||
bVar2.m = bVar2.n;
|
||||
bVar2.n = aVar4;
|
||||
aVar4.b = false;
|
||||
aVar4.a = false;
|
||||
bVar2.h = 0;
|
||||
bVar2.k = true;
|
||||
}
|
||||
i4 = i6;
|
||||
i5 = i;
|
||||
bArr2 = bArr;
|
||||
}
|
||||
if (z4 && bVar.o) {
|
||||
long j4 = bVar.j;
|
||||
bVar.a.d(bVar.q, bVar.r ? 1 : 0, (int) (j4 - bVar.p), i9 + ((int) (j - j4)), null);
|
||||
}
|
||||
bVar.p = bVar.j;
|
||||
bVar.q = bVar.l;
|
||||
bVar.r = false;
|
||||
bVar.o = true;
|
||||
if (bVar.b) {
|
||||
}
|
||||
boolean z7 = bVar.r;
|
||||
int i14 = bVar.i;
|
||||
z2 = z7 | (i14 != 5 || (z5 && i14 == 1));
|
||||
bVar.r = z2;
|
||||
if (z2) {
|
||||
}
|
||||
long j3 = this.m;
|
||||
this.d.d(i7);
|
||||
this.e.d(i7);
|
||||
this.f.d(i7);
|
||||
bVar2 = this.k;
|
||||
bVar2.i = i7;
|
||||
bVar2.l = j3;
|
||||
bVar2.j = j;
|
||||
if (bVar2.b) {
|
||||
}
|
||||
if (bVar2.f739c) {
|
||||
}
|
||||
i4 = i6;
|
||||
i5 = i;
|
||||
bArr2 = bArr;
|
||||
}
|
||||
i = i5;
|
||||
bArr = bArr2;
|
||||
if (this.f.b(i10)) {
|
||||
}
|
||||
bVar = this.k;
|
||||
boolean z4 = this.l;
|
||||
boolean z5 = this.n;
|
||||
if (bVar.i != 9) {
|
||||
}
|
||||
long j4 = bVar.j;
|
||||
bVar.a.d(bVar.q, bVar.r ? 1 : 0, (int) (j4 - bVar.p), i9 + ((int) (j - j4)), null);
|
||||
bVar.p = bVar.j;
|
||||
bVar.q = bVar.l;
|
||||
bVar.r = false;
|
||||
bVar.o = true;
|
||||
if (bVar.b) {
|
||||
}
|
||||
boolean z7 = bVar.r;
|
||||
int i14 = bVar.i;
|
||||
z2 = z7 | (i14 != 5 || (z5 && i14 == 1));
|
||||
bVar.r = z2;
|
||||
if (z2) {
|
||||
}
|
||||
long j3 = this.m;
|
||||
this.d.d(i7);
|
||||
this.e.d(i7);
|
||||
this.f.d(i7);
|
||||
bVar2 = this.k;
|
||||
bVar2.i = i7;
|
||||
bVar2.l = j3;
|
||||
bVar2.j = j;
|
||||
if (bVar2.b) {
|
||||
}
|
||||
if (bVar2.f739c) {
|
||||
}
|
||||
i4 = i6;
|
||||
i5 = i;
|
||||
bArr2 = bArr;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
this.g = 0;
|
||||
this.n = false;
|
||||
u.a(this.h);
|
||||
this.d.c();
|
||||
this.e.c();
|
||||
this.f.c();
|
||||
b bVar = this.k;
|
||||
if (bVar != null) {
|
||||
bVar.k = false;
|
||||
bVar.o = false;
|
||||
b.a aVar = bVar.n;
|
||||
aVar.b = false;
|
||||
aVar.a = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
dVar.a();
|
||||
this.i = dVar.b();
|
||||
w p = jVar.p(dVar.c(), 2);
|
||||
this.j = p;
|
||||
this.k = new b(p, this.b, this.f738c);
|
||||
this.a.a(jVar, dVar);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
this.m = j;
|
||||
this.n |= (i & 2) != 0;
|
||||
}
|
||||
}
|
|
@ -1,463 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.w;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.h;
|
||||
import c.i.a.c.i2.u;
|
||||
import c.i.a.c.i2.x;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import java.util.Collections;
|
||||
import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
||||
/* compiled from: H265Reader */
|
||||
public final class s implements o {
|
||||
public final e0 a;
|
||||
public String b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public w f741c;
|
||||
public a d;
|
||||
public boolean e;
|
||||
public final boolean[] f = new boolean[3];
|
||||
public final w g = new w(32, 128);
|
||||
public final w h = new w(33, 128);
|
||||
public final w i = new w(34, 128);
|
||||
public final w j = new w(39, 128);
|
||||
public final w k = new w(40, 128);
|
||||
public long l;
|
||||
public long m;
|
||||
public final c.i.a.c.i2.w n = new c.i.a.c.i2.w();
|
||||
|
||||
/* compiled from: H265Reader */
|
||||
public static final class a {
|
||||
public final w a;
|
||||
public long b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public boolean f742c;
|
||||
public int d;
|
||||
public long e;
|
||||
public boolean f;
|
||||
public boolean g;
|
||||
public boolean h;
|
||||
public boolean i;
|
||||
public boolean j;
|
||||
public long k;
|
||||
public long l;
|
||||
public boolean m;
|
||||
|
||||
public a(w wVar) {
|
||||
this.a = wVar;
|
||||
}
|
||||
|
||||
public final void a(int i) {
|
||||
boolean z2 = this.m;
|
||||
this.a.d(this.l, z2 ? 1 : 0, (int) (this.b - this.k), i, null);
|
||||
}
|
||||
}
|
||||
|
||||
public s(e0 e0Var) {
|
||||
this.a = e0Var;
|
||||
}
|
||||
|
||||
@RequiresNonNull({"sampleReader"})
|
||||
public final void a(byte[] bArr, int i, int i2) {
|
||||
a aVar = this.d;
|
||||
if (aVar.f) {
|
||||
int i3 = aVar.d;
|
||||
int i4 = (i + 2) - i3;
|
||||
if (i4 < i2) {
|
||||
aVar.g = (bArr[i4] & 128) != 0;
|
||||
aVar.f = false;
|
||||
} else {
|
||||
aVar.d = (i2 - i) + i3;
|
||||
}
|
||||
}
|
||||
if (!this.e) {
|
||||
this.g.a(bArr, i, i2);
|
||||
this.h.a(bArr, i, i2);
|
||||
this.i.a(bArr, i, i2);
|
||||
}
|
||||
this.j.a(bArr, i, i2);
|
||||
this.k.a(bArr, i, i2);
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:156:0x0335 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:157:0x0359 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:160:0x0363 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:168:0x03a7 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:198:0x03ed */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:206:0x03fc A[SYNTHETIC] */
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(c.i.a.c.i2.w wVar) {
|
||||
long j;
|
||||
long j2;
|
||||
int i;
|
||||
int i2;
|
||||
int i3;
|
||||
byte[] bArr;
|
||||
int i4;
|
||||
long j3;
|
||||
int i5;
|
||||
long j4;
|
||||
c.i.a.c.i2.w wVar2 = wVar;
|
||||
AnimatableValueParser.H(this.f741c);
|
||||
int i6 = f0.a;
|
||||
while (wVar.a() > 0) {
|
||||
int i7 = wVar2.f913c;
|
||||
byte[] bArr2 = wVar2.a;
|
||||
this.l += (long) wVar.a();
|
||||
this.f741c.c(wVar2, wVar.a());
|
||||
for (int i8 = wVar2.b; i8 < i7; i8 = i3) {
|
||||
int b = u.b(bArr2, i8, i7, this.f);
|
||||
if (b == i7) {
|
||||
a(bArr2, i8, i7);
|
||||
return;
|
||||
}
|
||||
int i9 = b + 3;
|
||||
int i10 = (bArr2[i9] & 126) >> 1;
|
||||
int i11 = b - i8;
|
||||
if (i11 > 0) {
|
||||
a(bArr2, i8, b);
|
||||
}
|
||||
int i12 = i7 - b;
|
||||
long j5 = this.l - ((long) i12);
|
||||
int i13 = i11 < 0 ? -i11 : 0;
|
||||
long j6 = this.m;
|
||||
a aVar = this.d;
|
||||
boolean z2 = this.e;
|
||||
if (aVar.j && aVar.g) {
|
||||
aVar.m = aVar.f742c;
|
||||
aVar.j = false;
|
||||
} else if (aVar.h || aVar.g) {
|
||||
if (z2 && aVar.i) {
|
||||
aVar.a(((int) (j5 - aVar.b)) + i12);
|
||||
}
|
||||
aVar.k = aVar.b;
|
||||
aVar.l = aVar.e;
|
||||
aVar.m = aVar.f742c;
|
||||
aVar.i = true;
|
||||
}
|
||||
if (!this.e) {
|
||||
this.g.b(i13);
|
||||
this.h.b(i13);
|
||||
this.i.b(i13);
|
||||
w wVar3 = this.g;
|
||||
if (wVar3.f747c) {
|
||||
w wVar4 = this.h;
|
||||
if (wVar4.f747c) {
|
||||
w wVar5 = this.i;
|
||||
if (wVar5.f747c) {
|
||||
w wVar6 = this.f741c;
|
||||
String str = this.b;
|
||||
i4 = i7;
|
||||
int i14 = wVar3.e;
|
||||
bArr = bArr2;
|
||||
i3 = i9;
|
||||
byte[] bArr3 = new byte[(wVar4.e + i14 + wVar5.e)];
|
||||
i2 = i12;
|
||||
System.arraycopy(wVar3.d, 0, bArr3, 0, i14);
|
||||
i = i10;
|
||||
System.arraycopy(wVar4.d, 0, bArr3, wVar3.e, wVar4.e);
|
||||
System.arraycopy(wVar5.d, 0, bArr3, wVar3.e + wVar4.e, wVar5.e);
|
||||
x xVar = new x(wVar4.d, 0, wVar4.e);
|
||||
xVar.k(44);
|
||||
int e = xVar.e(3);
|
||||
xVar.j();
|
||||
xVar.k(88);
|
||||
xVar.k(8);
|
||||
int i15 = 0;
|
||||
for (int i16 = 0; i16 < e; i16++) {
|
||||
if (xVar.d()) {
|
||||
i15 += 89;
|
||||
}
|
||||
if (xVar.d()) {
|
||||
i15 += 8;
|
||||
}
|
||||
}
|
||||
xVar.k(i15);
|
||||
if (e > 0) {
|
||||
xVar.k((8 - e) * 2);
|
||||
}
|
||||
xVar.f();
|
||||
int f = xVar.f();
|
||||
if (f == 3) {
|
||||
xVar.j();
|
||||
}
|
||||
int f2 = xVar.f();
|
||||
int f3 = xVar.f();
|
||||
if (xVar.d()) {
|
||||
int f4 = xVar.f();
|
||||
int f5 = xVar.f();
|
||||
int f6 = xVar.f();
|
||||
int f7 = xVar.f();
|
||||
j = j5;
|
||||
f2 -= (f4 + f5) * ((f == 1 || f == 2) ? 2 : 1);
|
||||
f3 -= (f6 + f7) * (f == 1 ? 2 : 1);
|
||||
} else {
|
||||
j = j5;
|
||||
}
|
||||
xVar.f();
|
||||
xVar.f();
|
||||
int f8 = xVar.f();
|
||||
for (int i17 = xVar.d() ? 0 : e; i17 <= e; i17++) {
|
||||
xVar.f();
|
||||
xVar.f();
|
||||
xVar.f();
|
||||
}
|
||||
xVar.f();
|
||||
xVar.f();
|
||||
xVar.f();
|
||||
xVar.f();
|
||||
xVar.f();
|
||||
xVar.f();
|
||||
if (xVar.d() && xVar.d()) {
|
||||
int i18 = 0;
|
||||
for (int i19 = 4; i18 < i19; i19 = 4) {
|
||||
int i20 = 0;
|
||||
while (i20 < 6) {
|
||||
if (!xVar.d()) {
|
||||
xVar.f();
|
||||
j4 = j6;
|
||||
} else {
|
||||
j4 = j6;
|
||||
int min = Math.min(64, 1 << ((i18 << 1) + 4));
|
||||
if (i18 > 1) {
|
||||
xVar.g();
|
||||
}
|
||||
for (int i21 = 0; i21 < min; i21++) {
|
||||
xVar.g();
|
||||
}
|
||||
}
|
||||
i20 += i18 == 3 ? 3 : 1;
|
||||
j6 = j4;
|
||||
}
|
||||
i18++;
|
||||
}
|
||||
}
|
||||
j2 = j6;
|
||||
xVar.k(2);
|
||||
if (xVar.d()) {
|
||||
xVar.k(8);
|
||||
xVar.f();
|
||||
xVar.f();
|
||||
xVar.j();
|
||||
}
|
||||
int f9 = xVar.f();
|
||||
int i22 = 0;
|
||||
boolean z3 = false;
|
||||
int i23 = 0;
|
||||
while (i22 < f9) {
|
||||
if (i22 != 0) {
|
||||
z3 = xVar.d();
|
||||
}
|
||||
if (z3) {
|
||||
xVar.j();
|
||||
xVar.f();
|
||||
for (int i24 = 0; i24 <= i23; i24++) {
|
||||
if (xVar.d()) {
|
||||
xVar.j();
|
||||
}
|
||||
}
|
||||
i5 = f9;
|
||||
} else {
|
||||
int f10 = xVar.f();
|
||||
int f11 = xVar.f();
|
||||
int i25 = f10 + f11;
|
||||
i5 = f9;
|
||||
for (int i26 = 0; i26 < f10; i26++) {
|
||||
xVar.f();
|
||||
xVar.j();
|
||||
}
|
||||
for (int i27 = 0; i27 < f11; i27++) {
|
||||
xVar.f();
|
||||
xVar.j();
|
||||
}
|
||||
i23 = i25;
|
||||
}
|
||||
i22++;
|
||||
f9 = i5;
|
||||
}
|
||||
if (xVar.d()) {
|
||||
for (int i28 = 0; i28 < xVar.f(); i28++) {
|
||||
xVar.k(f8 + 4 + 1);
|
||||
}
|
||||
}
|
||||
xVar.k(2);
|
||||
float f12 = 1.0f;
|
||||
if (xVar.d()) {
|
||||
if (xVar.d()) {
|
||||
int e2 = xVar.e(8);
|
||||
if (e2 == 255) {
|
||||
int e3 = xVar.e(16);
|
||||
int e4 = xVar.e(16);
|
||||
if (!(e3 == 0 || e4 == 0)) {
|
||||
f12 = ((float) e3) / ((float) e4);
|
||||
}
|
||||
} else {
|
||||
float[] fArr = u.b;
|
||||
if (e2 < fArr.length) {
|
||||
f12 = fArr[e2];
|
||||
} else {
|
||||
c.d.b.a.a.d0("Unexpected aspect_ratio_idc value: ", e2, "H265Reader");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (xVar.d()) {
|
||||
xVar.j();
|
||||
}
|
||||
if (xVar.d()) {
|
||||
xVar.k(4);
|
||||
if (xVar.d()) {
|
||||
xVar.k(24);
|
||||
}
|
||||
}
|
||||
if (xVar.d()) {
|
||||
xVar.f();
|
||||
xVar.f();
|
||||
}
|
||||
xVar.j();
|
||||
if (xVar.d()) {
|
||||
f3 *= 2;
|
||||
}
|
||||
}
|
||||
xVar.h(wVar4.d, 0, wVar4.e);
|
||||
xVar.k(24);
|
||||
String b2 = h.b(xVar);
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = str;
|
||||
bVar.k = "video/hevc";
|
||||
bVar.h = b2;
|
||||
bVar.p = f2;
|
||||
bVar.q = f3;
|
||||
bVar.t = f12;
|
||||
bVar.m = Collections.singletonList(bArr3);
|
||||
wVar6.e(bVar.a());
|
||||
this.e = true;
|
||||
if (!this.j.b(i13)) {
|
||||
w wVar7 = this.j;
|
||||
this.n.B(this.j.d, u.e(wVar7.d, wVar7.e));
|
||||
this.n.E(5);
|
||||
j3 = j2;
|
||||
AnimatableValueParser.L(j3, this.n, this.a.b);
|
||||
} else {
|
||||
j3 = j2;
|
||||
}
|
||||
if (this.k.b(i13)) {
|
||||
w wVar8 = this.k;
|
||||
this.n.B(this.k.d, u.e(wVar8.d, wVar8.e));
|
||||
this.n.E(5);
|
||||
AnimatableValueParser.L(j3, this.n, this.a.b);
|
||||
}
|
||||
long j7 = this.m;
|
||||
a aVar2 = this.d;
|
||||
boolean z4 = this.e;
|
||||
aVar2.g = false;
|
||||
aVar2.h = false;
|
||||
aVar2.e = j7;
|
||||
aVar2.d = 0;
|
||||
aVar2.b = j;
|
||||
if (!(i >= 32 || i == 40)) {
|
||||
if (aVar2.i && !aVar2.j) {
|
||||
if (z4) {
|
||||
aVar2.a(i2);
|
||||
}
|
||||
aVar2.i = false;
|
||||
}
|
||||
if ((32 <= i && i <= 35) || i == 39) {
|
||||
aVar2.h = !aVar2.j;
|
||||
aVar2.j = true;
|
||||
}
|
||||
}
|
||||
boolean z5 = i < 16 && i <= 21;
|
||||
aVar2.f742c = z5;
|
||||
aVar2.f = !z5 || i <= 9;
|
||||
if (this.e) {
|
||||
this.g.d(i);
|
||||
this.h.d(i);
|
||||
this.i.d(i);
|
||||
}
|
||||
this.j.d(i);
|
||||
this.k.d(i);
|
||||
i7 = i4;
|
||||
bArr2 = bArr;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
i2 = i12;
|
||||
i4 = i7;
|
||||
bArr = bArr2;
|
||||
i3 = i9;
|
||||
i = i10;
|
||||
j = j5;
|
||||
j2 = j6;
|
||||
if (!this.j.b(i13)) {
|
||||
}
|
||||
if (this.k.b(i13)) {
|
||||
}
|
||||
long j7 = this.m;
|
||||
a aVar2 = this.d;
|
||||
boolean z4 = this.e;
|
||||
aVar2.g = false;
|
||||
aVar2.h = false;
|
||||
aVar2.e = j7;
|
||||
aVar2.d = 0;
|
||||
aVar2.b = j;
|
||||
if (!(i >= 32 || i == 40)) {
|
||||
}
|
||||
if (i < 16) {
|
||||
}
|
||||
aVar2.f742c = z5;
|
||||
aVar2.f = !z5 || i <= 9;
|
||||
if (this.e) {
|
||||
}
|
||||
this.j.d(i);
|
||||
this.k.d(i);
|
||||
i7 = i4;
|
||||
bArr2 = bArr;
|
||||
}
|
||||
wVar2 = wVar;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
this.l = 0;
|
||||
u.a(this.f);
|
||||
this.g.c();
|
||||
this.h.c();
|
||||
this.i.c();
|
||||
this.j.c();
|
||||
this.k.c();
|
||||
a aVar = this.d;
|
||||
if (aVar != null) {
|
||||
aVar.f = false;
|
||||
aVar.g = false;
|
||||
aVar.h = false;
|
||||
aVar.i = false;
|
||||
aVar.j = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
dVar.a();
|
||||
this.b = dVar.b();
|
||||
w p = jVar.p(dVar.c(), 2);
|
||||
this.f741c = p;
|
||||
this.d = new a(p);
|
||||
this.a.a(jVar, dVar);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
this.m = j;
|
||||
}
|
||||
}
|
|
@ -1,82 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.util.Log;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
/* compiled from: Id3Reader */
|
||||
public final class t implements o {
|
||||
public final w a = new w(10);
|
||||
public c.i.a.c.a2.w b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public boolean f743c;
|
||||
public long d;
|
||||
public int e;
|
||||
public int f;
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(w wVar) {
|
||||
AnimatableValueParser.H(this.b);
|
||||
if (this.f743c) {
|
||||
int a = wVar.a();
|
||||
int i = this.f;
|
||||
if (i < 10) {
|
||||
int min = Math.min(a, 10 - i);
|
||||
System.arraycopy(wVar.a, wVar.b, this.a.a, this.f, min);
|
||||
if (this.f + min == 10) {
|
||||
this.a.D(0);
|
||||
if (73 == this.a.s() && 68 == this.a.s() && 51 == this.a.s()) {
|
||||
this.a.E(3);
|
||||
this.e = this.a.r() + 10;
|
||||
} else {
|
||||
Log.w("Id3Reader", "Discarding invalid ID3 tag");
|
||||
this.f743c = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
int min2 = Math.min(a, this.e - this.f);
|
||||
this.b.c(wVar, min2);
|
||||
this.f += min2;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
this.f743c = false;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
int i;
|
||||
AnimatableValueParser.H(this.b);
|
||||
if (this.f743c && (i = this.e) != 0 && this.f == i) {
|
||||
this.b.d(this.d, 1, i, 0, null);
|
||||
this.f743c = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
dVar.a();
|
||||
c.i.a.c.a2.w p = jVar.p(dVar.c(), 5);
|
||||
this.b = p;
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = dVar.b();
|
||||
bVar.k = "application/id3";
|
||||
p.e(bVar.a());
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
if ((i & 4) != 0) {
|
||||
this.f743c = true;
|
||||
this.d = j;
|
||||
this.e = 0;
|
||||
this.f = 0;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,252 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import c.i.a.c.v1.k;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.ParserException;
|
||||
import java.util.Collections;
|
||||
import java.util.Objects;
|
||||
/* compiled from: LatmReader */
|
||||
public final class u implements o {
|
||||
@Nullable
|
||||
public final String a;
|
||||
public final w b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final v f744c;
|
||||
public c.i.a.c.a2.w d;
|
||||
public String e;
|
||||
public Format f;
|
||||
public int g;
|
||||
public int h;
|
||||
public int i;
|
||||
public int j;
|
||||
public long k;
|
||||
public boolean l;
|
||||
public int m;
|
||||
public int n;
|
||||
public int o;
|
||||
public boolean p;
|
||||
public long q;
|
||||
public int r;
|
||||
|
||||
/* renamed from: s reason: collision with root package name */
|
||||
public long f745s;
|
||||
public int t;
|
||||
@Nullable
|
||||
public String u;
|
||||
|
||||
public u(@Nullable String str) {
|
||||
this.a = str;
|
||||
w wVar = new w(1024);
|
||||
this.b = wVar;
|
||||
this.f744c = new v(wVar.a);
|
||||
}
|
||||
|
||||
public static long a(v vVar) {
|
||||
return (long) vVar.g((vVar.g(2) + 1) * 8);
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:64:0x014e, code lost:
|
||||
if (r13.l == false) goto L_0x01a8;
|
||||
*/
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(w wVar) throws ParserException {
|
||||
int i;
|
||||
boolean f;
|
||||
AnimatableValueParser.H(this.d);
|
||||
while (wVar.a() > 0) {
|
||||
int i2 = this.g;
|
||||
if (i2 != 0) {
|
||||
if (i2 == 1) {
|
||||
int s2 = wVar.s();
|
||||
if ((s2 & 224) == 224) {
|
||||
this.j = s2;
|
||||
this.g = 2;
|
||||
} else if (s2 != 86) {
|
||||
this.g = 0;
|
||||
}
|
||||
} else if (i2 == 2) {
|
||||
int s3 = ((this.j & -225) << 8) | wVar.s();
|
||||
this.i = s3;
|
||||
w wVar2 = this.b;
|
||||
byte[] bArr = wVar2.a;
|
||||
if (s3 > bArr.length) {
|
||||
if (bArr.length < s3) {
|
||||
bArr = new byte[s3];
|
||||
}
|
||||
wVar2.B(bArr, s3);
|
||||
v vVar = this.f744c;
|
||||
byte[] bArr2 = this.b.a;
|
||||
Objects.requireNonNull(vVar);
|
||||
int length = bArr2.length;
|
||||
vVar.a = bArr2;
|
||||
vVar.b = 0;
|
||||
vVar.f912c = 0;
|
||||
vVar.d = length;
|
||||
}
|
||||
this.h = 0;
|
||||
this.g = 3;
|
||||
} else if (i2 == 3) {
|
||||
int min = Math.min(wVar.a(), this.i - this.h);
|
||||
wVar.e(this.f744c.a, this.h, min);
|
||||
int i3 = this.h + min;
|
||||
this.h = i3;
|
||||
if (i3 == this.i) {
|
||||
this.f744c.k(0);
|
||||
v vVar2 = this.f744c;
|
||||
if (!vVar2.f()) {
|
||||
this.l = true;
|
||||
int g = vVar2.g(1);
|
||||
int g2 = g == 1 ? vVar2.g(1) : 0;
|
||||
this.m = g2;
|
||||
if (g2 == 0) {
|
||||
if (g == 1) {
|
||||
a(vVar2);
|
||||
}
|
||||
if (vVar2.f()) {
|
||||
this.n = vVar2.g(6);
|
||||
int g3 = vVar2.g(4);
|
||||
int g4 = vVar2.g(3);
|
||||
if (g3 == 0 && g4 == 0) {
|
||||
if (g == 0) {
|
||||
int e = vVar2.e();
|
||||
int g5 = g(vVar2);
|
||||
vVar2.k(e);
|
||||
byte[] bArr3 = new byte[((g5 + 7) / 8)];
|
||||
vVar2.h(bArr3, 0, g5);
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = this.e;
|
||||
bVar.k = "audio/mp4a-latm";
|
||||
bVar.h = this.u;
|
||||
bVar.f2218x = this.t;
|
||||
bVar.f2219y = this.r;
|
||||
bVar.m = Collections.singletonList(bArr3);
|
||||
bVar.f2216c = this.a;
|
||||
Format a = bVar.a();
|
||||
if (!a.equals(this.f)) {
|
||||
this.f = a;
|
||||
this.f745s = 1024000000 / ((long) a.H);
|
||||
this.d.e(a);
|
||||
}
|
||||
} else {
|
||||
vVar2.m(((int) a(vVar2)) - g(vVar2));
|
||||
}
|
||||
int g6 = vVar2.g(3);
|
||||
this.o = g6;
|
||||
if (g6 == 0) {
|
||||
vVar2.m(8);
|
||||
} else if (g6 == 1) {
|
||||
vVar2.m(9);
|
||||
} else if (g6 == 3 || g6 == 4 || g6 == 5) {
|
||||
vVar2.m(6);
|
||||
} else if (g6 == 6 || g6 == 7) {
|
||||
vVar2.m(1);
|
||||
} else {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
boolean f2 = vVar2.f();
|
||||
this.p = f2;
|
||||
this.q = 0;
|
||||
if (f2) {
|
||||
if (g == 1) {
|
||||
this.q = a(vVar2);
|
||||
} else {
|
||||
do {
|
||||
f = vVar2.f();
|
||||
this.q = (this.q << 8) + ((long) vVar2.g(8));
|
||||
} while (f);
|
||||
}
|
||||
}
|
||||
if (vVar2.f()) {
|
||||
vVar2.m(8);
|
||||
}
|
||||
} else {
|
||||
throw new ParserException();
|
||||
}
|
||||
} else {
|
||||
throw new ParserException();
|
||||
}
|
||||
} else {
|
||||
throw new ParserException();
|
||||
}
|
||||
}
|
||||
if (this.m != 0) {
|
||||
throw new ParserException();
|
||||
} else if (this.n != 0) {
|
||||
throw new ParserException();
|
||||
} else if (this.o == 0) {
|
||||
int i4 = 0;
|
||||
while (true) {
|
||||
int g7 = vVar2.g(8);
|
||||
i = i4 + g7;
|
||||
if (g7 != 255) {
|
||||
break;
|
||||
}
|
||||
i4 = i;
|
||||
}
|
||||
int e2 = vVar2.e();
|
||||
if ((e2 & 7) == 0) {
|
||||
this.b.D(e2 >> 3);
|
||||
} else {
|
||||
vVar2.h(this.b.a, 0, i * 8);
|
||||
this.b.D(0);
|
||||
}
|
||||
this.d.c(this.b, i);
|
||||
this.d.d(this.k, 1, i, 0, null);
|
||||
this.k += this.f745s;
|
||||
if (this.p) {
|
||||
vVar2.m((int) this.q);
|
||||
}
|
||||
this.g = 0;
|
||||
} else {
|
||||
throw new ParserException();
|
||||
}
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
} else if (wVar.s() == 86) {
|
||||
this.g = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
this.g = 0;
|
||||
this.l = false;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
dVar.a();
|
||||
this.d = jVar.p(dVar.c(), 1);
|
||||
this.e = dVar.b();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
this.k = j;
|
||||
}
|
||||
|
||||
public final int g(v vVar) throws ParserException {
|
||||
int b = vVar.b();
|
||||
k.b c2 = k.c(vVar, true);
|
||||
this.u = c2.f991c;
|
||||
this.r = c2.a;
|
||||
this.t = c2.b;
|
||||
return b - vVar.b();
|
||||
}
|
||||
}
|
|
@ -1,134 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.w;
|
||||
import c.i.a.c.v1.z;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
/* compiled from: MpegAudioReader */
|
||||
public final class v implements o {
|
||||
public final w a;
|
||||
public final z.a b;
|
||||
@Nullable
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final String f746c;
|
||||
public c.i.a.c.a2.w d;
|
||||
public String e;
|
||||
public int f = 0;
|
||||
public int g;
|
||||
public boolean h;
|
||||
public boolean i;
|
||||
public long j;
|
||||
public int k;
|
||||
public long l;
|
||||
|
||||
public v(@Nullable String str) {
|
||||
w wVar = new w(4);
|
||||
this.a = wVar;
|
||||
wVar.a[0] = -1;
|
||||
this.b = new z.a();
|
||||
this.f746c = str;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void b(w wVar) {
|
||||
AnimatableValueParser.H(this.d);
|
||||
while (wVar.a() > 0) {
|
||||
int i = this.f;
|
||||
if (i == 0) {
|
||||
byte[] bArr = wVar.a;
|
||||
int i2 = wVar.b;
|
||||
int i3 = wVar.f913c;
|
||||
while (true) {
|
||||
if (i2 >= i3) {
|
||||
wVar.D(i3);
|
||||
break;
|
||||
}
|
||||
boolean z2 = (bArr[i2] & 255) == 255;
|
||||
boolean z3 = this.i && (bArr[i2] & 224) == 224;
|
||||
this.i = z2;
|
||||
if (z3) {
|
||||
wVar.D(i2 + 1);
|
||||
this.i = false;
|
||||
this.a.a[1] = bArr[i2];
|
||||
this.g = 2;
|
||||
this.f = 1;
|
||||
break;
|
||||
}
|
||||
i2++;
|
||||
}
|
||||
} else if (i == 1) {
|
||||
int min = Math.min(wVar.a(), 4 - this.g);
|
||||
wVar.e(this.a.a, this.g, min);
|
||||
int i4 = this.g + min;
|
||||
this.g = i4;
|
||||
if (i4 >= 4) {
|
||||
this.a.D(0);
|
||||
if (!this.b.a(this.a.f())) {
|
||||
this.g = 0;
|
||||
this.f = 1;
|
||||
} else {
|
||||
z.a aVar = this.b;
|
||||
this.k = aVar.f1006c;
|
||||
if (!this.h) {
|
||||
int i5 = aVar.d;
|
||||
this.j = (((long) aVar.g) * 1000000) / ((long) i5);
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.a = this.e;
|
||||
bVar.k = aVar.b;
|
||||
bVar.l = 4096;
|
||||
bVar.f2218x = aVar.e;
|
||||
bVar.f2219y = i5;
|
||||
bVar.f2216c = this.f746c;
|
||||
this.d.e(bVar.a());
|
||||
this.h = true;
|
||||
}
|
||||
this.a.D(0);
|
||||
this.d.c(this.a, 4);
|
||||
this.f = 2;
|
||||
}
|
||||
}
|
||||
} else if (i == 2) {
|
||||
int min2 = Math.min(wVar.a(), this.k - this.g);
|
||||
this.d.c(wVar, min2);
|
||||
int i6 = this.g + min2;
|
||||
this.g = i6;
|
||||
int i7 = this.k;
|
||||
if (i6 >= i7) {
|
||||
this.d.d(this.l, 1, i7, 0, null);
|
||||
this.l += this.j;
|
||||
this.g = 0;
|
||||
this.f = 0;
|
||||
}
|
||||
} else {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void c() {
|
||||
this.f = 0;
|
||||
this.g = 0;
|
||||
this.i = false;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void d() {
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void e(j jVar, i0.d dVar) {
|
||||
dVar.a();
|
||||
this.e = dVar.b();
|
||||
this.d = jVar.p(dVar.c(), 1);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.o
|
||||
public void f(long j, int i) {
|
||||
this.l = j;
|
||||
}
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import java.util.Arrays;
|
||||
/* compiled from: NalUnitTargetBuffer */
|
||||
public final class w {
|
||||
public final int a;
|
||||
public boolean b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public boolean f747c;
|
||||
public byte[] d;
|
||||
public int e;
|
||||
|
||||
public w(int i, int i2) {
|
||||
this.a = i;
|
||||
byte[] bArr = new byte[(i2 + 3)];
|
||||
this.d = bArr;
|
||||
bArr[2] = 1;
|
||||
}
|
||||
|
||||
public void a(byte[] bArr, int i, int i2) {
|
||||
if (this.b) {
|
||||
int i3 = i2 - i;
|
||||
byte[] bArr2 = this.d;
|
||||
int length = bArr2.length;
|
||||
int i4 = this.e;
|
||||
if (length < i4 + i3) {
|
||||
this.d = Arrays.copyOf(bArr2, (i4 + i3) * 2);
|
||||
}
|
||||
System.arraycopy(bArr, i, this.d, this.e, i3);
|
||||
this.e += i3;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean b(int i) {
|
||||
if (!this.b) {
|
||||
return false;
|
||||
}
|
||||
this.e -= i;
|
||||
this.b = false;
|
||||
this.f747c = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void c() {
|
||||
this.b = false;
|
||||
this.f747c = false;
|
||||
}
|
||||
|
||||
public void d(int i) {
|
||||
boolean z2 = true;
|
||||
AnimatableValueParser.D(!this.b);
|
||||
if (i != this.a) {
|
||||
z2 = false;
|
||||
}
|
||||
this.b = z2;
|
||||
if (z2) {
|
||||
this.e = 3;
|
||||
this.f747c = false;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,68 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.a2.w;
|
||||
import c.i.a.c.i2.e0;
|
||||
import c.i.a.c.i2.f0;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
/* compiled from: PassthroughSectionPayloadReader */
|
||||
public final class x implements c0 {
|
||||
public Format a;
|
||||
public e0 b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public w f748c;
|
||||
|
||||
public x(String str) {
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.k = str;
|
||||
this.a = bVar.a();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.c0
|
||||
public void a(e0 e0Var, j jVar, i0.d dVar) {
|
||||
this.b = e0Var;
|
||||
dVar.a();
|
||||
w p = jVar.p(dVar.c(), 5);
|
||||
this.f748c = p;
|
||||
p.e(this.a);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.c0
|
||||
public void b(c.i.a.c.i2.w wVar) {
|
||||
long j;
|
||||
AnimatableValueParser.H(this.b);
|
||||
int i = f0.a;
|
||||
long d = this.b.d();
|
||||
long j2 = -9223372036854775807L;
|
||||
if (d != -9223372036854775807L) {
|
||||
Format format = this.a;
|
||||
if (d != format.f2213x) {
|
||||
Format.b a = format.a();
|
||||
a.o = d;
|
||||
Format a2 = a.a();
|
||||
this.a = a2;
|
||||
this.f748c.e(a2);
|
||||
}
|
||||
int a3 = wVar.a();
|
||||
this.f748c.c(wVar, a3);
|
||||
w wVar2 = this.f748c;
|
||||
e0 e0Var = this.b;
|
||||
synchronized (e0Var) {
|
||||
long j3 = e0Var.f903c;
|
||||
if (j3 != -9223372036854775807L) {
|
||||
j2 = e0Var.b + j3;
|
||||
} else {
|
||||
long j4 = e0Var.a;
|
||||
if (j4 != Long.MAX_VALUE) {
|
||||
j = j4;
|
||||
}
|
||||
}
|
||||
j = j2;
|
||||
}
|
||||
wVar2.d(j, 1, a3, 0, null);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,187 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import android.util.Log;
|
||||
import androidx.annotation.Nullable;
|
||||
import c.d.b.a.a;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.j0.i0;
|
||||
import c.i.a.c.i2.e0;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.ParserException;
|
||||
/* compiled from: PesReader */
|
||||
public final class y implements i0 {
|
||||
public final o a;
|
||||
public final v b = new v(new byte[10]);
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public int f749c = 0;
|
||||
public int d;
|
||||
public e0 e;
|
||||
public boolean f;
|
||||
public boolean g;
|
||||
public boolean h;
|
||||
public int i;
|
||||
public int j;
|
||||
public boolean k;
|
||||
public long l;
|
||||
|
||||
public y(o oVar) {
|
||||
this.a = oVar;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.i0
|
||||
public void a(e0 e0Var, j jVar, i0.d dVar) {
|
||||
this.e = e0Var;
|
||||
this.a.e(jVar, dVar);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.i0
|
||||
public final void b(w wVar, int i) throws ParserException {
|
||||
boolean z2;
|
||||
AnimatableValueParser.H(this.e);
|
||||
int i2 = -1;
|
||||
int i3 = 3;
|
||||
if ((i & 1) != 0) {
|
||||
int i4 = this.f749c;
|
||||
if (!(i4 == 0 || i4 == 1)) {
|
||||
if (i4 == 2) {
|
||||
Log.w("PesReader", "Unexpected start indicator reading extended header");
|
||||
} else if (i4 == 3) {
|
||||
if (this.j != -1) {
|
||||
StringBuilder K = a.K("Unexpected start indicator: expected ");
|
||||
K.append(this.j);
|
||||
K.append(" more bytes");
|
||||
Log.w("PesReader", K.toString());
|
||||
}
|
||||
this.a.d();
|
||||
} else {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
e(1);
|
||||
}
|
||||
while (wVar.a() > 0) {
|
||||
int i5 = this.f749c;
|
||||
if (i5 != 0) {
|
||||
int i6 = 0;
|
||||
if (i5 != 1) {
|
||||
if (i5 == 2) {
|
||||
if (d(wVar, this.b.a, Math.min(10, this.i)) && d(wVar, null, this.i)) {
|
||||
this.b.k(0);
|
||||
this.l = -9223372036854775807L;
|
||||
if (this.f) {
|
||||
this.b.m(4);
|
||||
this.b.m(1);
|
||||
this.b.m(1);
|
||||
long g = (((long) this.b.g(i3)) << 30) | ((long) (this.b.g(15) << 15)) | ((long) this.b.g(15));
|
||||
this.b.m(1);
|
||||
if (!this.h && this.g) {
|
||||
this.b.m(4);
|
||||
this.b.m(1);
|
||||
this.b.m(1);
|
||||
this.b.m(1);
|
||||
this.e.b((((long) this.b.g(i3)) << 30) | ((long) (this.b.g(15) << 15)) | ((long) this.b.g(15)));
|
||||
this.h = true;
|
||||
}
|
||||
this.l = this.e.b(g);
|
||||
}
|
||||
i |= this.k ? 4 : 0;
|
||||
this.a.f(this.l, i);
|
||||
e(3);
|
||||
}
|
||||
} else if (i5 == i3) {
|
||||
int a = wVar.a();
|
||||
int i7 = this.j;
|
||||
if (i7 != i2) {
|
||||
i6 = a - i7;
|
||||
}
|
||||
if (i6 > 0) {
|
||||
a -= i6;
|
||||
wVar.C(wVar.b + a);
|
||||
}
|
||||
this.a.b(wVar);
|
||||
int i8 = this.j;
|
||||
if (i8 != i2) {
|
||||
int i9 = i8 - a;
|
||||
this.j = i9;
|
||||
if (i9 == 0) {
|
||||
this.a.d();
|
||||
e(1);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
} else if (d(wVar, this.b.a, 9)) {
|
||||
this.b.k(0);
|
||||
int g2 = this.b.g(24);
|
||||
if (g2 != 1) {
|
||||
a.d0("Unexpected start code prefix: ", g2, "PesReader");
|
||||
this.j = -1;
|
||||
z2 = false;
|
||||
} else {
|
||||
this.b.m(8);
|
||||
int g3 = this.b.g(16);
|
||||
this.b.m(5);
|
||||
this.k = this.b.f();
|
||||
this.b.m(2);
|
||||
this.f = this.b.f();
|
||||
this.g = this.b.f();
|
||||
this.b.m(6);
|
||||
int g4 = this.b.g(8);
|
||||
this.i = g4;
|
||||
if (g3 == 0) {
|
||||
this.j = -1;
|
||||
} else {
|
||||
int i10 = ((g3 + 6) - 9) - g4;
|
||||
this.j = i10;
|
||||
if (i10 < 0) {
|
||||
StringBuilder K2 = a.K("Found negative packet payload size: ");
|
||||
K2.append(this.j);
|
||||
Log.w("PesReader", K2.toString());
|
||||
this.j = -1;
|
||||
}
|
||||
}
|
||||
z2 = true;
|
||||
}
|
||||
e(z2 ? 2 : 0);
|
||||
}
|
||||
} else {
|
||||
wVar.E(wVar.a());
|
||||
}
|
||||
i2 = -1;
|
||||
i3 = 3;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.j0.i0
|
||||
public final void c() {
|
||||
this.f749c = 0;
|
||||
this.d = 0;
|
||||
this.h = false;
|
||||
this.a.c();
|
||||
}
|
||||
|
||||
public final boolean d(w wVar, @Nullable byte[] bArr, int i) {
|
||||
int min = Math.min(wVar.a(), i - this.d);
|
||||
if (min <= 0) {
|
||||
return true;
|
||||
}
|
||||
if (bArr == null) {
|
||||
wVar.E(min);
|
||||
} else {
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, this.d, min);
|
||||
wVar.b += min;
|
||||
}
|
||||
int i2 = this.d + min;
|
||||
this.d = i2;
|
||||
return i2 == i;
|
||||
}
|
||||
|
||||
public final void e(int i) {
|
||||
this.f749c = i;
|
||||
this.d = 0;
|
||||
}
|
||||
}
|
|
@ -1,104 +0,0 @@
|
|||
package c.i.a.c.a2.j0;
|
||||
|
||||
import c.i.a.c.a2.a;
|
||||
import c.i.a.c.a2.i;
|
||||
import c.i.a.c.i2.e0;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.w;
|
||||
import java.io.IOException;
|
||||
/* compiled from: PsBinarySearchSeeker */
|
||||
public final class z extends c.i.a.c.a2.a {
|
||||
|
||||
/* compiled from: PsBinarySearchSeeker */
|
||||
public static final class b implements a.f {
|
||||
public final e0 a;
|
||||
public final w b = new w();
|
||||
|
||||
public b(e0 e0Var, a aVar) {
|
||||
this.a = e0Var;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.a.f
|
||||
public void a() {
|
||||
this.b.A(f0.f);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.a.f
|
||||
public a.e b(i iVar, long j) throws IOException {
|
||||
int g;
|
||||
long position = iVar.getPosition();
|
||||
int min = (int) Math.min(20000L, iVar.b() - position);
|
||||
this.b.z(min);
|
||||
iVar.n(this.b.a, 0, min);
|
||||
w wVar = this.b;
|
||||
int i = -1;
|
||||
long j2 = -9223372036854775807L;
|
||||
int i2 = -1;
|
||||
while (wVar.a() >= 4) {
|
||||
if (z.g(wVar.a, wVar.b) != 442) {
|
||||
wVar.E(1);
|
||||
} else {
|
||||
wVar.E(4);
|
||||
long c2 = a0.c(wVar);
|
||||
if (c2 != -9223372036854775807L) {
|
||||
long b = this.a.b(c2);
|
||||
if (b > j) {
|
||||
return j2 == -9223372036854775807L ? a.e.a(b, position) : a.e.b(position + ((long) i2));
|
||||
}
|
||||
if (100000 + b > j) {
|
||||
return a.e.b(position + ((long) wVar.b));
|
||||
}
|
||||
i2 = wVar.b;
|
||||
j2 = b;
|
||||
}
|
||||
int i3 = wVar.f913c;
|
||||
if (wVar.a() >= 10) {
|
||||
wVar.E(9);
|
||||
int s2 = wVar.s() & 7;
|
||||
if (wVar.a() >= s2) {
|
||||
wVar.E(s2);
|
||||
if (wVar.a() >= 4) {
|
||||
if (z.g(wVar.a, wVar.b) == 443) {
|
||||
wVar.E(4);
|
||||
int x2 = wVar.x();
|
||||
if (wVar.a() < x2) {
|
||||
wVar.D(i3);
|
||||
} else {
|
||||
wVar.E(x2);
|
||||
}
|
||||
}
|
||||
while (true) {
|
||||
if (wVar.a() < 4 || (g = z.g(wVar.a, wVar.b)) == 442 || g == 441 || (g >>> 8) != 1) {
|
||||
break;
|
||||
}
|
||||
wVar.E(4);
|
||||
if (wVar.a() < 2) {
|
||||
wVar.D(i3);
|
||||
break;
|
||||
}
|
||||
wVar.D(Math.min(wVar.f913c, wVar.b + wVar.x()));
|
||||
}
|
||||
} else {
|
||||
wVar.D(i3);
|
||||
}
|
||||
} else {
|
||||
wVar.D(i3);
|
||||
}
|
||||
} else {
|
||||
wVar.D(i3);
|
||||
}
|
||||
i = wVar.b;
|
||||
}
|
||||
}
|
||||
return j2 != -9223372036854775807L ? a.e.c(j2, position + ((long) i)) : a.e.a;
|
||||
}
|
||||
}
|
||||
|
||||
public z(e0 e0Var, long j, long j2) {
|
||||
super(new a.b(), new b(e0Var, null), j, 0, j + 1, 0, j2, 188, 1000);
|
||||
}
|
||||
|
||||
public static int g(byte[] bArr, int i) {
|
||||
return (bArr[i + 3] & 255) | ((bArr[i] & 255) << 24) | ((bArr[i + 1] & 255) << 16) | ((bArr[i + 2] & 255) << 8);
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import android.net.Uri;
|
||||
import java.util.Map;
|
||||
/* compiled from: ExtractorsFactory */
|
||||
public final /* synthetic */ class k {
|
||||
/* JADX WARN: Incorrect args count in method signature: (Landroid/net/Uri;Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;)[Lc/i/a/c/a2/h; */
|
||||
public static h[] a(l lVar, Uri uri, Map map) {
|
||||
return lVar.a();
|
||||
}
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
package c.i.a.c.a2.k0;
|
||||
|
||||
import android.net.Uri;
|
||||
import c.i.a.c.a2.h;
|
||||
import c.i.a.c.a2.k;
|
||||
import c.i.a.c.a2.l;
|
||||
import java.util.Map;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class a implements l {
|
||||
public static final /* synthetic */ a a = new a();
|
||||
|
||||
@Override // c.i.a.c.a2.l
|
||||
public final h[] a() {
|
||||
return new h[]{new b()};
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.l
|
||||
public /* synthetic */ h[] b(Uri uri, Map map) {
|
||||
return k.a(this, uri, map);
|
||||
}
|
||||
}
|
|
@ -1,344 +0,0 @@
|
|||
package c.i.a.c.a2.k0;
|
||||
|
||||
import android.util.Log;
|
||||
import android.util.Pair;
|
||||
import c.i.a.c.a2.h;
|
||||
import c.i.a.c.a2.i;
|
||||
import c.i.a.c.a2.j;
|
||||
import c.i.a.c.a2.s;
|
||||
import c.i.a.c.a2.w;
|
||||
import c.i.a.c.i2.f0;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.ParserException;
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
/* compiled from: WavExtractor */
|
||||
public final class b implements h {
|
||||
public j a;
|
||||
public w b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public AbstractC0084b f750c;
|
||||
public int d = -1;
|
||||
public long e = -1;
|
||||
|
||||
/* compiled from: WavExtractor */
|
||||
public static final class a implements AbstractC0084b {
|
||||
public static final int[] a = {-1, -1, -1, -1, 2, 4, 6, 8, -1, -1, -1, -1, 2, 4, 6, 8};
|
||||
public static final int[] b = {7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 23, 25, 28, 31, 34, 37, 41, 45, 50, 55, 60, 66, 73, 80, 88, 97, 107, 118, 130, 143, 157, 173, 190, 209, 230, 253, 279, 307, 337, 371, 408, 449, 494, 544, 598, 658, 724, 796, 876, 963, 1060, 1166, 1282, 1411, 1552, 1707, 1878, 2066, 2272, 2499, 2749, 3024, 3327, 3660, 4026, 4428, 4871, 5358, 5894, 6484, 7132, 7845, 8630, 9493, 10442, 11487, 12635, 13899, 15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767};
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final j f751c;
|
||||
public final w d;
|
||||
public final c e;
|
||||
public final int f;
|
||||
public final byte[] g;
|
||||
public final c.i.a.c.i2.w h;
|
||||
public final int i;
|
||||
public final Format j;
|
||||
public int k;
|
||||
public long l;
|
||||
public int m;
|
||||
public long n;
|
||||
|
||||
public a(j jVar, w wVar, c cVar) throws ParserException {
|
||||
this.f751c = jVar;
|
||||
this.d = wVar;
|
||||
this.e = cVar;
|
||||
int max = Math.max(1, cVar.f753c / 10);
|
||||
this.i = max;
|
||||
byte[] bArr = cVar.f;
|
||||
int length = bArr.length;
|
||||
byte b2 = bArr[0];
|
||||
byte b3 = bArr[1];
|
||||
int i = ((bArr[3] & 255) << 8) | (bArr[2] & 255);
|
||||
this.f = i;
|
||||
int i2 = cVar.b;
|
||||
int i3 = (((cVar.d - (i2 * 4)) * 8) / (cVar.e * i2)) + 1;
|
||||
if (i == i3) {
|
||||
int f = f0.f(max, i);
|
||||
this.g = new byte[(cVar.d * f)];
|
||||
this.h = new c.i.a.c.i2.w(i * 2 * i2 * f);
|
||||
int i4 = cVar.f753c;
|
||||
int i5 = ((cVar.d * i4) * 8) / i;
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.k = "audio/raw";
|
||||
bVar.f = i5;
|
||||
bVar.g = i5;
|
||||
bVar.l = max * 2 * i2;
|
||||
bVar.f2218x = cVar.b;
|
||||
bVar.f2219y = i4;
|
||||
bVar.f2220z = 2;
|
||||
this.j = bVar.a();
|
||||
return;
|
||||
}
|
||||
throw new ParserException(c.d.b.a.a.l("Expected frames per block: ", i3, "; got: ", i));
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.k0.b.AbstractC0084b
|
||||
public void a(long j) {
|
||||
this.k = 0;
|
||||
this.l = j;
|
||||
this.m = 0;
|
||||
this.n = 0;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.k0.b.AbstractC0084b
|
||||
public void b(int i, long j) {
|
||||
this.f751c.a(new e(this.e, this.f, (long) i, j));
|
||||
this.d.e(this.j);
|
||||
}
|
||||
|
||||
/* JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor
|
||||
jadx.core.utils.exceptions.JadxOverflowException: Regions count limit reached
|
||||
at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:57)
|
||||
at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31)
|
||||
at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:15)
|
||||
*/
|
||||
/* JADX WARNING: Removed duplicated region for block: B:41:0x0049 A[ADDED_TO_REGION, EDGE_INSN: B:41:0x0049->B:12:0x0049 ?: BREAK , SYNTHETIC] */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:6:0x002b */
|
||||
@Override // c.i.a.c.a2.k0.b.AbstractC0084b
|
||||
public boolean c(c.i.a.c.a2.i r19, long r20) throws java.io.IOException {
|
||||
/*
|
||||
// Method dump skipped, instructions count: 364
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: c.i.a.c.a2.k0.b.a.c(c.i.a.c.a2.i, long):boolean");
|
||||
}
|
||||
|
||||
public final int d(int i) {
|
||||
return i / (this.e.b * 2);
|
||||
}
|
||||
|
||||
public final void e(int i) {
|
||||
long E = this.l + f0.E(this.n, 1000000, (long) this.e.f753c);
|
||||
int i2 = i * 2 * this.e.b;
|
||||
this.d.d(E, 1, i2, this.m - i2, null);
|
||||
this.n += (long) i;
|
||||
this.m -= i2;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WavExtractor */
|
||||
/* renamed from: c.i.a.c.a2.k0.b$b reason: collision with other inner class name */
|
||||
public interface AbstractC0084b {
|
||||
void a(long j);
|
||||
|
||||
void b(int i, long j) throws ParserException;
|
||||
|
||||
boolean c(i iVar, long j) throws IOException;
|
||||
}
|
||||
|
||||
/* compiled from: WavExtractor */
|
||||
public static final class c implements AbstractC0084b {
|
||||
public final j a;
|
||||
public final w b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final c f752c;
|
||||
public final Format d;
|
||||
public final int e;
|
||||
public long f;
|
||||
public int g;
|
||||
public long h;
|
||||
|
||||
public c(j jVar, w wVar, c cVar, String str, int i) throws ParserException {
|
||||
this.a = jVar;
|
||||
this.b = wVar;
|
||||
this.f752c = cVar;
|
||||
int i2 = (cVar.b * cVar.e) / 8;
|
||||
if (cVar.d == i2) {
|
||||
int i3 = cVar.f753c * i2;
|
||||
int i4 = i3 * 8;
|
||||
int max = Math.max(i2, i3 / 10);
|
||||
this.e = max;
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.k = str;
|
||||
bVar.f = i4;
|
||||
bVar.g = i4;
|
||||
bVar.l = max;
|
||||
bVar.f2218x = cVar.b;
|
||||
bVar.f2219y = cVar.f753c;
|
||||
bVar.f2220z = i;
|
||||
this.d = bVar.a();
|
||||
return;
|
||||
}
|
||||
StringBuilder L = c.d.b.a.a.L("Expected block size: ", i2, "; got: ");
|
||||
L.append(cVar.d);
|
||||
throw new ParserException(L.toString());
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.k0.b.AbstractC0084b
|
||||
public void a(long j) {
|
||||
this.f = j;
|
||||
this.g = 0;
|
||||
this.h = 0;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.k0.b.AbstractC0084b
|
||||
public void b(int i, long j) {
|
||||
this.a.a(new e(this.f752c, 1, (long) i, j));
|
||||
this.b.e(this.d);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.k0.b.AbstractC0084b
|
||||
public boolean c(i iVar, long j) throws IOException {
|
||||
int i;
|
||||
int i2;
|
||||
int i3;
|
||||
long j2 = j;
|
||||
while (true) {
|
||||
i = (j2 > 0 ? 1 : (j2 == 0 ? 0 : -1));
|
||||
if (i <= 0 || (i2 = this.g) >= (i3 = this.e)) {
|
||||
break;
|
||||
}
|
||||
int b = this.b.b(iVar, (int) Math.min((long) (i3 - i2), j2), true);
|
||||
if (b == -1) {
|
||||
j2 = 0;
|
||||
} else {
|
||||
this.g += b;
|
||||
j2 -= (long) b;
|
||||
}
|
||||
}
|
||||
c cVar = this.f752c;
|
||||
int i4 = cVar.d;
|
||||
int i5 = this.g / i4;
|
||||
if (i5 > 0) {
|
||||
int i6 = i5 * i4;
|
||||
int i7 = this.g - i6;
|
||||
this.b.d(this.f + f0.E(this.h, 1000000, (long) cVar.f753c), 1, i6, i7, null);
|
||||
this.h += (long) i5;
|
||||
this.g = i7;
|
||||
}
|
||||
return i <= 0;
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
a aVar = a.a;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public boolean b(i iVar) throws IOException {
|
||||
return AnimatableValueParser.Y1(iVar) != null;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:27:0x006a */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:28:0x0079 */
|
||||
@Override // c.i.a.c.a2.h
|
||||
public int e(i iVar, s sVar) throws IOException {
|
||||
int i;
|
||||
int i2;
|
||||
AnimatableValueParser.H(this.b);
|
||||
int i3 = f0.a;
|
||||
boolean z2 = true;
|
||||
if (this.f750c == null) {
|
||||
c Y1 = AnimatableValueParser.Y1(iVar);
|
||||
if (Y1 != null) {
|
||||
int i4 = Y1.a;
|
||||
if (i4 == 17) {
|
||||
this.f750c = new a(this.a, this.b, Y1);
|
||||
} else if (i4 == 6) {
|
||||
this.f750c = new c(this.a, this.b, Y1, "audio/g711-alaw", -1);
|
||||
} else if (i4 == 7) {
|
||||
this.f750c = new c(this.a, this.b, Y1, "audio/g711-mlaw", -1);
|
||||
} else {
|
||||
int i5 = Y1.e;
|
||||
if (i4 != 1) {
|
||||
if (i4 == 3) {
|
||||
i2 = i5 == 32 ? 4 : 0;
|
||||
i = i2;
|
||||
if (i != 0) {
|
||||
}
|
||||
} else if (i4 != 65534) {
|
||||
i = 0;
|
||||
if (i != 0) {
|
||||
this.f750c = new c(this.a, this.b, Y1, "audio/raw", i);
|
||||
} else {
|
||||
StringBuilder K = c.d.b.a.a.K("Unsupported WAV format type: ");
|
||||
K.append(Y1.a);
|
||||
throw new ParserException(K.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
i2 = f0.r(i5);
|
||||
i = i2;
|
||||
if (i != 0) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
throw new ParserException("Unsupported or unrecognized wav header.");
|
||||
}
|
||||
}
|
||||
if (this.d == -1) {
|
||||
Objects.requireNonNull(iVar);
|
||||
iVar.k();
|
||||
c.i.a.c.i2.w wVar = new c.i.a.c.i2.w(8);
|
||||
d a2 = d.a(iVar, wVar);
|
||||
while (true) {
|
||||
int i6 = a2.a;
|
||||
if (i6 != 1684108385) {
|
||||
if (!(i6 == 1380533830 || i6 == 1718449184)) {
|
||||
StringBuilder K2 = c.d.b.a.a.K("Ignoring unknown WAV chunk: ");
|
||||
K2.append(a2.a);
|
||||
Log.w("WavHeaderReader", K2.toString());
|
||||
}
|
||||
long j = a2.b + 8;
|
||||
if (a2.a == 1380533830) {
|
||||
j = 12;
|
||||
}
|
||||
if (j <= 2147483647L) {
|
||||
iVar.l((int) j);
|
||||
a2 = d.a(iVar, wVar);
|
||||
} else {
|
||||
StringBuilder K3 = c.d.b.a.a.K("Chunk is too large (~2GB+) to skip; id: ");
|
||||
K3.append(a2.a);
|
||||
throw new ParserException(K3.toString());
|
||||
}
|
||||
} else {
|
||||
iVar.l(8);
|
||||
long position = iVar.getPosition();
|
||||
long j2 = a2.b + position;
|
||||
long b = iVar.b();
|
||||
if (b != -1 && j2 > b) {
|
||||
StringBuilder N = c.d.b.a.a.N("Data exceeds input length: ", j2, ", ");
|
||||
N.append(b);
|
||||
Log.w("WavHeaderReader", N.toString());
|
||||
j2 = b;
|
||||
}
|
||||
Pair create = Pair.create(Long.valueOf(position), Long.valueOf(j2));
|
||||
this.d = ((Long) create.first).intValue();
|
||||
long longValue = ((Long) create.second).longValue();
|
||||
this.e = longValue;
|
||||
this.f750c.b(this.d, longValue);
|
||||
}
|
||||
}
|
||||
} else if (iVar.getPosition() == 0) {
|
||||
iVar.l(this.d);
|
||||
}
|
||||
if (this.e == -1) {
|
||||
z2 = false;
|
||||
}
|
||||
AnimatableValueParser.D(z2);
|
||||
return this.f750c.c(iVar, this.e - iVar.getPosition()) ? -1 : 0;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void f(j jVar) {
|
||||
this.a = jVar;
|
||||
this.b = jVar.p(0, 1);
|
||||
jVar.j();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void g(long j, long j2) {
|
||||
AbstractC0084b bVar = this.f750c;
|
||||
if (bVar != null) {
|
||||
bVar.a(j2);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.h
|
||||
public void release() {
|
||||
}
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
package c.i.a.c.a2.k0;
|
||||
/* compiled from: WavHeader */
|
||||
public final class c {
|
||||
public final int a;
|
||||
public final int b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final int f753c;
|
||||
public final int d;
|
||||
public final int e;
|
||||
public final byte[] f;
|
||||
|
||||
public c(int i, int i2, int i3, int i4, int i5, int i6, byte[] bArr) {
|
||||
this.a = i;
|
||||
this.b = i2;
|
||||
this.f753c = i3;
|
||||
this.d = i5;
|
||||
this.e = i6;
|
||||
this.f = bArr;
|
||||
}
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
package c.i.a.c.a2.k0;
|
||||
|
||||
import c.i.a.c.a2.i;
|
||||
import c.i.a.c.i2.w;
|
||||
import java.io.IOException;
|
||||
/* compiled from: WavHeaderReader */
|
||||
public final class d {
|
||||
public final int a;
|
||||
public final long b;
|
||||
|
||||
public d(int i, long j) {
|
||||
this.a = i;
|
||||
this.b = j;
|
||||
}
|
||||
|
||||
public static d a(i iVar, w wVar) throws IOException {
|
||||
iVar.n(wVar.a, 0, 8);
|
||||
wVar.D(0);
|
||||
return new d(wVar.f(), wVar.j());
|
||||
}
|
||||
}
|
|
@ -1,51 +0,0 @@
|
|||
package c.i.a.c.a2.k0;
|
||||
|
||||
import c.i.a.c.a2.t;
|
||||
import c.i.a.c.a2.u;
|
||||
import c.i.a.c.i2.f0;
|
||||
/* compiled from: WavSeekMap */
|
||||
public final class e implements t {
|
||||
public final c a;
|
||||
public final int b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final long f754c;
|
||||
public final long d;
|
||||
public final long e;
|
||||
|
||||
public e(c cVar, int i, long j, long j2) {
|
||||
this.a = cVar;
|
||||
this.b = i;
|
||||
this.f754c = j;
|
||||
long j3 = (j2 - j) / ((long) cVar.d);
|
||||
this.d = j3;
|
||||
this.e = b(j3);
|
||||
}
|
||||
|
||||
public final long b(long j) {
|
||||
return f0.E(j * ((long) this.b), 1000000, (long) this.a.f753c);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public boolean c() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public t.a h(long j) {
|
||||
long i = f0.i((((long) this.a.f753c) * j) / (((long) this.b) * 1000000), 0, this.d - 1);
|
||||
long j2 = (((long) this.a.d) * i) + this.f754c;
|
||||
long b = b(i);
|
||||
u uVar = new u(b, j2);
|
||||
if (b >= j || i == this.d - 1) {
|
||||
return new t.a(uVar);
|
||||
}
|
||||
long j3 = i + 1;
|
||||
return new t.a(uVar, new u(b(j3), (((long) this.a.d) * j3) + this.f754c));
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public long i() {
|
||||
return this.e;
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import android.net.Uri;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
/* compiled from: ExtractorsFactory */
|
||||
public interface l {
|
||||
h[] a();
|
||||
|
||||
h[] b(Uri uri, Map<String, List<String>> map);
|
||||
}
|
|
@ -1,118 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.w;
|
||||
/* compiled from: FlacFrameReader */
|
||||
public final class m {
|
||||
|
||||
/* compiled from: FlacFrameReader */
|
||||
public static final class a {
|
||||
public long a;
|
||||
}
|
||||
|
||||
public static boolean a(w wVar, o oVar, boolean z2, a aVar) {
|
||||
try {
|
||||
long y2 = wVar.y();
|
||||
if (!z2) {
|
||||
y2 *= (long) oVar.b;
|
||||
}
|
||||
aVar.a = y2;
|
||||
return true;
|
||||
} catch (NumberFormatException unused) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:43:0x008e, code lost:
|
||||
if (r7 == r18.f) goto L_0x00ac;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:47:0x009b, code lost:
|
||||
if ((r17.s() * 1000) == r3) goto L_0x00ac;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:53:0x00aa, code lost:
|
||||
if (r4 == r3) goto L_0x00ac;
|
||||
*/
|
||||
/* JADX WARNING: Removed duplicated region for block: B:57:0x00b1 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:71:? A[RETURN, SYNTHETIC] */
|
||||
public static boolean b(w wVar, o oVar, int i, a aVar) {
|
||||
boolean z2;
|
||||
long t = wVar.t();
|
||||
long j = t >>> 16;
|
||||
if (j != ((long) i)) {
|
||||
return false;
|
||||
}
|
||||
boolean z3 = (j & 1) == 1;
|
||||
int i2 = (int) ((t >> 12) & 15);
|
||||
int i3 = (int) ((t >> 8) & 15);
|
||||
int i4 = (int) (15 & (t >> 4));
|
||||
int i5 = (int) ((t >> 1) & 7);
|
||||
boolean z4 = (t & 1) == 1;
|
||||
if (!(i4 > 7 ? !(i4 > 10 || oVar.g != 2) : i4 == oVar.g - 1)) {
|
||||
return false;
|
||||
}
|
||||
if (!(i5 == 0 || i5 == oVar.i) || z4 || !a(wVar, oVar, z3, aVar)) {
|
||||
return false;
|
||||
}
|
||||
int c2 = c(wVar, i2);
|
||||
if (!(c2 != -1 && c2 <= oVar.b)) {
|
||||
return false;
|
||||
}
|
||||
int i6 = oVar.e;
|
||||
if (i3 != 0) {
|
||||
if (i3 > 11) {
|
||||
if (i3 != 12) {
|
||||
if (i3 <= 14) {
|
||||
int x2 = wVar.x();
|
||||
if (i3 == 14) {
|
||||
x2 *= 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
z2 = false;
|
||||
if (z2) {
|
||||
return false;
|
||||
}
|
||||
int s2 = wVar.s();
|
||||
int i7 = wVar.b;
|
||||
byte[] bArr = wVar.a;
|
||||
int i8 = i7 - 1;
|
||||
int i9 = f0.a;
|
||||
int i10 = 0;
|
||||
for (int i11 = wVar.b; i11 < i8; i11++) {
|
||||
i10 = f0.l[i10 ^ (bArr[i11] & 255)];
|
||||
}
|
||||
return s2 == i10;
|
||||
}
|
||||
z2 = true;
|
||||
if (z2) {
|
||||
}
|
||||
}
|
||||
|
||||
public static int c(w wVar, int i) {
|
||||
switch (i) {
|
||||
case 1:
|
||||
return 192;
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
case 5:
|
||||
return 576 << (i - 2);
|
||||
case 6:
|
||||
return wVar.s() + 1;
|
||||
case 7:
|
||||
return wVar.x() + 1;
|
||||
case 8:
|
||||
case 9:
|
||||
case 10:
|
||||
case 11:
|
||||
case 12:
|
||||
case 13:
|
||||
case 14:
|
||||
case 15:
|
||||
return 256 << (i - 8);
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,51 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import c.i.a.c.a2.o;
|
||||
import c.i.a.c.a2.t;
|
||||
import c.i.a.c.i2.f0;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
/* compiled from: FlacSeekTableSeekMap */
|
||||
public final class n implements t {
|
||||
public final o a;
|
||||
public final long b;
|
||||
|
||||
public n(o oVar, long j) {
|
||||
this.a = oVar;
|
||||
this.b = j;
|
||||
}
|
||||
|
||||
public final u b(long j, long j2) {
|
||||
return new u((j * 1000000) / ((long) this.a.e), this.b + j2);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public boolean c() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public t.a h(long j) {
|
||||
AnimatableValueParser.H(this.a.k);
|
||||
o oVar = this.a;
|
||||
o.a aVar = oVar.k;
|
||||
long[] jArr = aVar.a;
|
||||
long[] jArr2 = aVar.b;
|
||||
int e = f0.e(jArr, oVar.g(j), true, false);
|
||||
long j2 = 0;
|
||||
long j3 = e == -1 ? 0 : jArr[e];
|
||||
if (e != -1) {
|
||||
j2 = jArr2[e];
|
||||
}
|
||||
u b = b(j3, j2);
|
||||
if (b.b == j || e == jArr.length - 1) {
|
||||
return new t.a(b);
|
||||
}
|
||||
int i = e + 1;
|
||||
return new t.a(b, b(jArr[i], jArr2[i]));
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public long i() {
|
||||
return this.a.d();
|
||||
}
|
||||
}
|
|
@ -1,182 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.v;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
import com.google.android.exoplayer2.metadata.flac.PictureFrame;
|
||||
import com.google.android.exoplayer2.metadata.flac.VorbisComment;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
/* compiled from: FlacStreamMetadata */
|
||||
public final class o {
|
||||
public final int a;
|
||||
public final int b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final int f755c;
|
||||
public final int d;
|
||||
public final int e;
|
||||
public final int f;
|
||||
public final int g;
|
||||
public final int h;
|
||||
public final int i;
|
||||
public final long j;
|
||||
@Nullable
|
||||
public final a k;
|
||||
@Nullable
|
||||
public final Metadata l;
|
||||
|
||||
/* compiled from: FlacStreamMetadata */
|
||||
public static class a {
|
||||
public final long[] a;
|
||||
public final long[] b;
|
||||
|
||||
public a(long[] jArr, long[] jArr2) {
|
||||
this.a = jArr;
|
||||
this.b = jArr2;
|
||||
}
|
||||
}
|
||||
|
||||
public o(int i, int i2, int i3, int i4, int i5, int i6, int i7, long j, @Nullable a aVar, @Nullable Metadata metadata) {
|
||||
this.a = i;
|
||||
this.b = i2;
|
||||
this.f755c = i3;
|
||||
this.d = i4;
|
||||
this.e = i5;
|
||||
this.f = h(i5);
|
||||
this.g = i6;
|
||||
this.h = i7;
|
||||
this.i = c(i7);
|
||||
this.j = j;
|
||||
this.k = aVar;
|
||||
this.l = metadata;
|
||||
}
|
||||
|
||||
public o(byte[] bArr, int i) {
|
||||
v vVar = new v(bArr);
|
||||
vVar.k(i * 8);
|
||||
this.a = vVar.g(16);
|
||||
this.b = vVar.g(16);
|
||||
this.f755c = vVar.g(24);
|
||||
this.d = vVar.g(24);
|
||||
int g = vVar.g(20);
|
||||
this.e = g;
|
||||
this.f = h(g);
|
||||
this.g = vVar.g(3) + 1;
|
||||
int g2 = vVar.g(5) + 1;
|
||||
this.h = g2;
|
||||
this.i = c(g2);
|
||||
this.j = (f0.L(vVar.g(4)) << 32) | f0.L(vVar.g(32));
|
||||
this.k = null;
|
||||
this.l = null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static Metadata a(List<String> list, List<PictureFrame> list2) {
|
||||
if (list.isEmpty() && list2.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
String str = list.get(i);
|
||||
String[] H = f0.H(str, "=");
|
||||
if (H.length != 2) {
|
||||
c.d.b.a.a.g0("Failed to parse Vorbis comment: ", str, "FlacStreamMetadata");
|
||||
} else {
|
||||
arrayList.add(new VorbisComment(H[0], H[1]));
|
||||
}
|
||||
}
|
||||
arrayList.addAll(list2);
|
||||
if (arrayList.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
return new Metadata(arrayList);
|
||||
}
|
||||
|
||||
public static int c(int i) {
|
||||
if (i == 8) {
|
||||
return 1;
|
||||
}
|
||||
if (i == 12) {
|
||||
return 2;
|
||||
}
|
||||
if (i == 16) {
|
||||
return 4;
|
||||
}
|
||||
if (i != 20) {
|
||||
return i != 24 ? -1 : 6;
|
||||
}
|
||||
return 5;
|
||||
}
|
||||
|
||||
public static int h(int i) {
|
||||
switch (i) {
|
||||
case 8000:
|
||||
return 4;
|
||||
case 16000:
|
||||
return 5;
|
||||
case 22050:
|
||||
return 6;
|
||||
case 24000:
|
||||
return 7;
|
||||
case 32000:
|
||||
return 8;
|
||||
case 44100:
|
||||
return 9;
|
||||
case 48000:
|
||||
return 10;
|
||||
case 88200:
|
||||
return 1;
|
||||
case 96000:
|
||||
return 11;
|
||||
case 176400:
|
||||
return 2;
|
||||
case 192000:
|
||||
return 3;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
public o b(@Nullable a aVar) {
|
||||
return new o(this.a, this.b, this.f755c, this.d, this.e, this.g, this.h, this.j, aVar, this.l);
|
||||
}
|
||||
|
||||
public long d() {
|
||||
long j = this.j;
|
||||
if (j == 0) {
|
||||
return -9223372036854775807L;
|
||||
}
|
||||
return (j * 1000000) / ((long) this.e);
|
||||
}
|
||||
|
||||
public Format e(byte[] bArr, @Nullable Metadata metadata) {
|
||||
bArr[4] = Byte.MIN_VALUE;
|
||||
int i = this.d;
|
||||
if (i <= 0) {
|
||||
i = -1;
|
||||
}
|
||||
Metadata f = f(metadata);
|
||||
Format.b bVar = new Format.b();
|
||||
bVar.k = "audio/flac";
|
||||
bVar.l = i;
|
||||
bVar.f2218x = this.g;
|
||||
bVar.f2219y = this.e;
|
||||
bVar.m = Collections.singletonList(bArr);
|
||||
bVar.i = f;
|
||||
return bVar.a();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Metadata f(@Nullable Metadata metadata) {
|
||||
Metadata metadata2 = this.l;
|
||||
return metadata2 == null ? metadata : metadata == null ? metadata2 : metadata2.a(metadata.i);
|
||||
}
|
||||
|
||||
public long g(long j) {
|
||||
return f0.i((j * ((long) this.e)) / 1000000, 0, this.j - 1);
|
||||
}
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import c.i.a.c.i2.f0;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
import com.google.android.exoplayer2.metadata.id3.CommentFrame;
|
||||
import com.google.android.exoplayer2.metadata.id3.InternalFrame;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
/* compiled from: GaplessInfoHolder */
|
||||
public final class p {
|
||||
public static final Pattern a = Pattern.compile("^ [0-9a-fA-F]{8} ([0-9a-fA-F]{8}) ([0-9a-fA-F]{8})");
|
||||
public int b = -1;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public int f756c = -1;
|
||||
|
||||
public final boolean a(String str) {
|
||||
Matcher matcher = a.matcher(str);
|
||||
if (!matcher.find()) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
String group = matcher.group(1);
|
||||
int i = f0.a;
|
||||
int parseInt = Integer.parseInt(group, 16);
|
||||
int parseInt2 = Integer.parseInt(matcher.group(2), 16);
|
||||
if (parseInt <= 0 && parseInt2 <= 0) {
|
||||
return false;
|
||||
}
|
||||
this.b = parseInt;
|
||||
this.f756c = parseInt2;
|
||||
return true;
|
||||
} catch (NumberFormatException unused) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean b(Metadata metadata) {
|
||||
int i = 0;
|
||||
while (true) {
|
||||
Metadata.Entry[] entryArr = metadata.i;
|
||||
if (i >= entryArr.length) {
|
||||
return false;
|
||||
}
|
||||
Metadata.Entry entry = entryArr[i];
|
||||
if (entry instanceof CommentFrame) {
|
||||
CommentFrame commentFrame = (CommentFrame) entry;
|
||||
if ("iTunSMPB".equals(commentFrame.k) && a(commentFrame.l)) {
|
||||
return true;
|
||||
}
|
||||
} else if (entry instanceof InternalFrame) {
|
||||
InternalFrame internalFrame = (InternalFrame) entry;
|
||||
if ("com.apple.iTunes".equals(internalFrame.j) && "iTunSMPB".equals(internalFrame.k) && a(internalFrame.l)) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.c2.k.b;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
/* compiled from: Id3Peeker */
|
||||
public final class q {
|
||||
public final w a = new w(10);
|
||||
|
||||
@Nullable
|
||||
public Metadata a(i iVar, @Nullable b.a aVar) throws IOException {
|
||||
Metadata metadata = null;
|
||||
int i = 0;
|
||||
while (true) {
|
||||
try {
|
||||
iVar.n(this.a.a, 0, 10);
|
||||
this.a.D(0);
|
||||
if (this.a.u() != 4801587) {
|
||||
break;
|
||||
}
|
||||
this.a.E(3);
|
||||
int r = this.a.r();
|
||||
int i2 = r + 10;
|
||||
if (metadata == null) {
|
||||
byte[] bArr = new byte[i2];
|
||||
System.arraycopy(this.a.a, 0, bArr, 0, 10);
|
||||
iVar.n(bArr, 10, r);
|
||||
metadata = new b(aVar).d(bArr, i2);
|
||||
} else {
|
||||
iVar.g(r);
|
||||
}
|
||||
i += i2;
|
||||
} catch (EOFException unused) {
|
||||
}
|
||||
}
|
||||
iVar.k();
|
||||
iVar.g(i);
|
||||
return metadata;
|
||||
}
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import c.i.a.c.a2.t;
|
||||
import c.i.a.c.i2.f0;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
/* compiled from: IndexSeekMap */
|
||||
public final class r implements t {
|
||||
public final long[] a;
|
||||
public final long[] b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final long f757c;
|
||||
public final boolean d;
|
||||
|
||||
public r(long[] jArr, long[] jArr2, long j) {
|
||||
AnimatableValueParser.k(jArr.length == jArr2.length);
|
||||
int length = jArr2.length;
|
||||
boolean z2 = length > 0;
|
||||
this.d = z2;
|
||||
if (!z2 || jArr2[0] <= 0) {
|
||||
this.a = jArr;
|
||||
this.b = jArr2;
|
||||
} else {
|
||||
int i = length + 1;
|
||||
long[] jArr3 = new long[i];
|
||||
this.a = jArr3;
|
||||
long[] jArr4 = new long[i];
|
||||
this.b = jArr4;
|
||||
System.arraycopy(jArr, 0, jArr3, 1, length);
|
||||
System.arraycopy(jArr2, 0, jArr4, 1, length);
|
||||
}
|
||||
this.f757c = j;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public boolean c() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public t.a h(long j) {
|
||||
if (!this.d) {
|
||||
return new t.a(u.a);
|
||||
}
|
||||
int e = f0.e(this.b, j, true, true);
|
||||
long[] jArr = this.b;
|
||||
long j2 = jArr[e];
|
||||
long[] jArr2 = this.a;
|
||||
u uVar = new u(j2, jArr2[e]);
|
||||
if (j2 == j || e == jArr.length - 1) {
|
||||
return new t.a(uVar);
|
||||
}
|
||||
int i = e + 1;
|
||||
return new t.a(uVar, new u(jArr[i], jArr2[i]));
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public long i() {
|
||||
return this.f757c;
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
/* compiled from: PositionHolder */
|
||||
public final class s {
|
||||
public long a;
|
||||
}
|
|
@ -1,83 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
/* compiled from: SeekMap */
|
||||
public interface t {
|
||||
|
||||
/* compiled from: SeekMap */
|
||||
public static final class a {
|
||||
public final u a;
|
||||
public final u b;
|
||||
|
||||
public a(u uVar) {
|
||||
this.a = uVar;
|
||||
this.b = uVar;
|
||||
}
|
||||
|
||||
public a(u uVar, u uVar2) {
|
||||
this.a = uVar;
|
||||
this.b = uVar2;
|
||||
}
|
||||
|
||||
public boolean equals(@Nullable Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null || a.class != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
a aVar = (a) obj;
|
||||
return this.a.equals(aVar.a) && this.b.equals(aVar.b);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.b.hashCode() + (this.a.hashCode() * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
String str;
|
||||
StringBuilder K = c.d.b.a.a.K("[");
|
||||
K.append(this.a);
|
||||
if (this.a.equals(this.b)) {
|
||||
str = "";
|
||||
} else {
|
||||
StringBuilder K2 = c.d.b.a.a.K(", ");
|
||||
K2.append(this.b);
|
||||
str = K2.toString();
|
||||
}
|
||||
return c.d.b.a.a.C(K, str, "]");
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: SeekMap */
|
||||
public static class b implements t {
|
||||
public final long a;
|
||||
public final a b;
|
||||
|
||||
public b(long j, long j2) {
|
||||
this.a = j;
|
||||
this.b = new a(j2 == 0 ? u.a : new u(0, j2));
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public boolean c() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public a h(long j) {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a2.t
|
||||
public long i() {
|
||||
return this.a;
|
||||
}
|
||||
}
|
||||
|
||||
boolean c();
|
||||
|
||||
a h(long j);
|
||||
|
||||
long i();
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.d.b.a.a;
|
||||
/* compiled from: SeekPoint */
|
||||
public final class u {
|
||||
public static final u a = new u(0, 0);
|
||||
public final long b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final long f758c;
|
||||
|
||||
public u(long j, long j2) {
|
||||
this.b = j;
|
||||
this.f758c = j2;
|
||||
}
|
||||
|
||||
public boolean equals(@Nullable Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null || u.class != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
u uVar = (u) obj;
|
||||
return this.b == uVar.b && this.f758c == uVar.f758c;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return (((int) this.b) * 31) + ((int) this.f758c);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder K = a.K("[timeUs=");
|
||||
K.append(this.b);
|
||||
K.append(", position=");
|
||||
return a.y(K, this.f758c, "]");
|
||||
}
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import c.i.a.c.h2.f;
|
||||
import c.i.a.c.i2.w;
|
||||
import java.io.IOException;
|
||||
/* compiled from: TrackOutput */
|
||||
public final /* synthetic */ class v {
|
||||
public static int a(w wVar, f fVar, int i, boolean z2) throws IOException {
|
||||
return wVar.a(fVar, i, z2, 0);
|
||||
}
|
||||
|
||||
public static void b(w wVar, w wVar2, int i) {
|
||||
wVar.f(wVar2, i, 0);
|
||||
}
|
||||
}
|
|
@ -1,54 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.h2.f;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
/* compiled from: TrackOutput */
|
||||
public interface w {
|
||||
|
||||
/* compiled from: TrackOutput */
|
||||
public static final class a {
|
||||
public final int a;
|
||||
public final byte[] b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final int f759c;
|
||||
public final int d;
|
||||
|
||||
public a(int i, byte[] bArr, int i2, int i3) {
|
||||
this.a = i;
|
||||
this.b = bArr;
|
||||
this.f759c = i2;
|
||||
this.d = i3;
|
||||
}
|
||||
|
||||
public boolean equals(@Nullable Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null || a.class != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
a aVar = (a) obj;
|
||||
return this.a == aVar.a && this.f759c == aVar.f759c && this.d == aVar.d && Arrays.equals(this.b, aVar.b);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return ((((Arrays.hashCode(this.b) + (this.a * 31)) * 31) + this.f759c) * 31) + this.d;
|
||||
}
|
||||
}
|
||||
|
||||
int a(f fVar, int i, boolean z2, int i2) throws IOException;
|
||||
|
||||
int b(f fVar, int i, boolean z2) throws IOException;
|
||||
|
||||
void c(c.i.a.c.i2.w wVar, int i);
|
||||
|
||||
void d(long j, int i, int i2, int i3, @Nullable a aVar);
|
||||
|
||||
void e(Format format);
|
||||
|
||||
void f(c.i.a.c.i2.w wVar, int i, int i2);
|
||||
}
|
|
@ -1,57 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
/* compiled from: VorbisBitArray */
|
||||
public final class x {
|
||||
public final byte[] a;
|
||||
public final int b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public int f760c;
|
||||
public int d;
|
||||
|
||||
public x(byte[] bArr) {
|
||||
this.a = bArr;
|
||||
this.b = bArr.length;
|
||||
}
|
||||
|
||||
public boolean a() {
|
||||
boolean z2 = (((this.a[this.f760c] & 255) >> this.d) & 1) == 1;
|
||||
c(1);
|
||||
return z2;
|
||||
}
|
||||
|
||||
public int b(int i) {
|
||||
int i2 = this.f760c;
|
||||
int min = Math.min(i, 8 - this.d);
|
||||
int i3 = i2 + 1;
|
||||
int i4 = ((this.a[i2] & 255) >> this.d) & (255 >> (8 - min));
|
||||
while (min < i) {
|
||||
i4 |= (this.a[i3] & 255) << min;
|
||||
min += 8;
|
||||
i3++;
|
||||
}
|
||||
int i5 = i4 & (-1 >>> (32 - i));
|
||||
c(i);
|
||||
return i5;
|
||||
}
|
||||
|
||||
public void c(int i) {
|
||||
int i2;
|
||||
int i3 = i / 8;
|
||||
int i4 = this.f760c + i3;
|
||||
this.f760c = i4;
|
||||
int i5 = (i - (i3 * 8)) + this.d;
|
||||
this.d = i5;
|
||||
boolean z2 = true;
|
||||
if (i5 > 7) {
|
||||
this.f760c = i4 + 1;
|
||||
this.d = i5 - 8;
|
||||
}
|
||||
int i6 = this.f760c;
|
||||
if (i6 < 0 || (i6 >= (i2 = this.b) && !(i6 == i2 && this.d == 0))) {
|
||||
z2 = false;
|
||||
}
|
||||
AnimatableValueParser.D(z2);
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
/* compiled from: VorbisUtil */
|
||||
public final class y {
|
||||
public final String[] a;
|
||||
|
||||
public y(String str, String[] strArr, int i) {
|
||||
this.a = strArr;
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
package c.i.a.c.a2;
|
||||
/* compiled from: VorbisUtil */
|
||||
public final class z {
|
||||
public final boolean a;
|
||||
|
||||
public z(boolean z2, int i, int i2, int i3) {
|
||||
this.a = z2;
|
||||
}
|
||||
}
|
|
@ -1,47 +0,0 @@
|
|||
package c.i.a.c;
|
||||
|
||||
import c.d.b.a.a;
|
||||
import c.i.a.c.e0;
|
||||
import c.i.a.c.v1.n;
|
||||
import java.util.Objects;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class b implements Runnable {
|
||||
public final /* synthetic */ e0.a i;
|
||||
public final /* synthetic */ int j;
|
||||
|
||||
public /* synthetic */ b(e0.a aVar, int i) {
|
||||
this.i = aVar;
|
||||
this.j = i;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
e0.a aVar = this.i;
|
||||
int i = this.j;
|
||||
e0 e0Var = e0.this;
|
||||
Objects.requireNonNull(e0Var);
|
||||
boolean z2 = true;
|
||||
if (i == -3 || i == -2) {
|
||||
if (i != -2) {
|
||||
n nVar = e0Var.d;
|
||||
if (nVar == null || nVar.b != 1) {
|
||||
z2 = false;
|
||||
}
|
||||
if (!z2) {
|
||||
e0Var.c(3);
|
||||
return;
|
||||
}
|
||||
}
|
||||
e0Var.b(0);
|
||||
e0Var.c(2);
|
||||
} else if (i == -1) {
|
||||
e0Var.b(-1);
|
||||
e0Var.a();
|
||||
} else if (i != 1) {
|
||||
a.d0("Unknown focus change type: ", i, "AudioFocusManager");
|
||||
} else {
|
||||
e0Var.c(1);
|
||||
e0Var.b(1);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
package c.i.a.c;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class b0 implements Runnable {
|
||||
public final /* synthetic */ q1 i;
|
||||
|
||||
public /* synthetic */ b0(q1 q1Var) {
|
||||
this.i = q1Var;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.i.c();
|
||||
}
|
||||
}
|
|
@ -1,348 +0,0 @@
|
|||
package c.i.a.c;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.util.Pair;
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.d2.h0;
|
||||
import c.i.a.c.d2.r;
|
||||
import c.i.a.c.d2.s;
|
||||
import c.i.a.c.d2.t;
|
||||
import c.i.a.c.d2.u;
|
||||
import c.i.a.c.d2.v;
|
||||
import c.i.a.c.d2.y;
|
||||
import c.i.a.c.d2.z;
|
||||
import c.i.a.c.h2.x;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.u1.c1;
|
||||
import c.i.a.c.z1.q;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.IdentityHashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
/* compiled from: MediaSourceList */
|
||||
public final class b1 {
|
||||
public final List<c> a = new ArrayList();
|
||||
public final IdentityHashMap<v, c> b = new IdentityHashMap<>();
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final Map<Object, c> f761c = new HashMap();
|
||||
public final d d;
|
||||
public final z.a e;
|
||||
public final q.a f;
|
||||
public final HashMap<c, b> g;
|
||||
public final Set<c> h;
|
||||
public h0 i = new h0.a(0, new Random());
|
||||
public boolean j;
|
||||
@Nullable
|
||||
public x k;
|
||||
|
||||
/* compiled from: MediaSourceList */
|
||||
public final class a implements z, q {
|
||||
public final c i;
|
||||
public z.a j;
|
||||
public q.a k;
|
||||
|
||||
public a(c cVar) {
|
||||
this.j = b1.this.e;
|
||||
this.k = b1.this.f;
|
||||
this.i = cVar;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.z1.q
|
||||
public void B(int i, @Nullable y.a aVar) {
|
||||
if (a(i, aVar)) {
|
||||
this.k.b();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.z1.q
|
||||
public void F(int i, @Nullable y.a aVar) {
|
||||
if (a(i, aVar)) {
|
||||
this.k.d();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.z1.q
|
||||
public void L(int i, @Nullable y.a aVar) {
|
||||
if (a(i, aVar)) {
|
||||
this.k.a();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.d2.z
|
||||
public void N(int i, @Nullable y.a aVar, r rVar, u uVar) {
|
||||
if (a(i, aVar)) {
|
||||
this.j.d(rVar, uVar);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.z1.q
|
||||
public void R(int i, @Nullable y.a aVar) {
|
||||
if (a(i, aVar)) {
|
||||
this.k.f();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.d2.z
|
||||
public void U(int i, @Nullable y.a aVar, r rVar, u uVar, IOException iOException, boolean z2) {
|
||||
if (a(i, aVar)) {
|
||||
this.j.e(rVar, uVar, iOException, z2);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.z1.q
|
||||
public void W(int i, @Nullable y.a aVar) {
|
||||
if (a(i, aVar)) {
|
||||
this.k.c();
|
||||
}
|
||||
}
|
||||
|
||||
public final boolean a(int i, @Nullable y.a aVar) {
|
||||
y.a aVar2 = null;
|
||||
if (aVar != null) {
|
||||
c cVar = this.i;
|
||||
int i2 = 0;
|
||||
while (true) {
|
||||
if (i2 >= cVar.f763c.size()) {
|
||||
break;
|
||||
} else if (cVar.f763c.get(i2).d == aVar.d) {
|
||||
aVar2 = aVar.b(Pair.create(cVar.b, aVar.a));
|
||||
break;
|
||||
} else {
|
||||
i2++;
|
||||
}
|
||||
}
|
||||
if (aVar2 == null) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
int i3 = i + this.i.d;
|
||||
z.a aVar3 = this.j;
|
||||
if (aVar3.a != i3 || !f0.a(aVar3.b, aVar2)) {
|
||||
this.j = b1.this.e.g(i3, aVar2, 0);
|
||||
}
|
||||
q.a aVar4 = this.k;
|
||||
if (aVar4.a == i3 && f0.a(aVar4.b, aVar2)) {
|
||||
return true;
|
||||
}
|
||||
this.k = b1.this.f.g(i3, aVar2);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.d2.z
|
||||
public void l(int i, @Nullable y.a aVar, u uVar) {
|
||||
if (a(i, aVar)) {
|
||||
this.j.b(uVar);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.d2.z
|
||||
public void m(int i, @Nullable y.a aVar, r rVar, u uVar) {
|
||||
if (a(i, aVar)) {
|
||||
this.j.c(rVar, uVar);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.z1.q
|
||||
public void o(int i, @Nullable y.a aVar, Exception exc) {
|
||||
if (a(i, aVar)) {
|
||||
this.k.e(exc);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.d2.z
|
||||
public void q(int i, @Nullable y.a aVar, r rVar, u uVar) {
|
||||
if (a(i, aVar)) {
|
||||
this.j.f(rVar, uVar);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: MediaSourceList */
|
||||
public static final class b {
|
||||
public final y a;
|
||||
public final y.b b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final z f762c;
|
||||
|
||||
public b(y yVar, y.b bVar, z zVar) {
|
||||
this.a = yVar;
|
||||
this.b = bVar;
|
||||
this.f762c = zVar;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: MediaSourceList */
|
||||
public static final class c implements a1 {
|
||||
public final t a;
|
||||
public final Object b = new Object();
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final List<y.a> f763c = new ArrayList();
|
||||
public int d;
|
||||
public boolean e;
|
||||
|
||||
public c(y yVar, boolean z2) {
|
||||
this.a = new t(yVar, z2);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a1
|
||||
public r1 a() {
|
||||
return this.a.n;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.a1
|
||||
public Object getUid() {
|
||||
return this.b;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: MediaSourceList */
|
||||
public interface d {
|
||||
}
|
||||
|
||||
public b1(d dVar, @Nullable c1 c1Var, Handler handler) {
|
||||
this.d = dVar;
|
||||
z.a aVar = new z.a();
|
||||
this.e = aVar;
|
||||
q.a aVar2 = new q.a();
|
||||
this.f = aVar2;
|
||||
this.g = new HashMap<>();
|
||||
this.h = new HashSet();
|
||||
if (c1Var != null) {
|
||||
aVar.f811c.add(new z.a.C0087a(handler, c1Var));
|
||||
aVar2.f1017c.add(new q.a.C0095a(handler, c1Var));
|
||||
}
|
||||
}
|
||||
|
||||
public r1 a(int i, List<c> list, h0 h0Var) {
|
||||
if (!list.isEmpty()) {
|
||||
this.i = h0Var;
|
||||
for (int i2 = i; i2 < list.size() + i; i2++) {
|
||||
c cVar = list.get(i2 - i);
|
||||
if (i2 > 0) {
|
||||
c cVar2 = this.a.get(i2 - 1);
|
||||
t.a aVar = cVar2.a.n;
|
||||
cVar.d = aVar.p() + cVar2.d;
|
||||
cVar.e = false;
|
||||
cVar.f763c.clear();
|
||||
} else {
|
||||
cVar.d = 0;
|
||||
cVar.e = false;
|
||||
cVar.f763c.clear();
|
||||
}
|
||||
b(i2, cVar.a.n.p());
|
||||
this.a.add(i2, cVar);
|
||||
this.f761c.put(cVar.b, cVar);
|
||||
if (this.j) {
|
||||
g(cVar);
|
||||
if (this.b.isEmpty()) {
|
||||
this.h.add(cVar);
|
||||
} else {
|
||||
b bVar = this.g.get(cVar);
|
||||
if (bVar != null) {
|
||||
bVar.a.d(bVar.b);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return c();
|
||||
}
|
||||
|
||||
public final void b(int i, int i2) {
|
||||
while (i < this.a.size()) {
|
||||
this.a.get(i).d += i2;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
public r1 c() {
|
||||
if (this.a.isEmpty()) {
|
||||
return r1.a;
|
||||
}
|
||||
int i = 0;
|
||||
for (int i2 = 0; i2 < this.a.size(); i2++) {
|
||||
c cVar = this.a.get(i2);
|
||||
cVar.d = i;
|
||||
i += cVar.a.n.p();
|
||||
}
|
||||
return new i1(this.a, this.i);
|
||||
}
|
||||
|
||||
public final void d() {
|
||||
Iterator<c> it = this.h.iterator();
|
||||
while (it.hasNext()) {
|
||||
c next = it.next();
|
||||
if (next.f763c.isEmpty()) {
|
||||
b bVar = this.g.get(next);
|
||||
if (bVar != null) {
|
||||
bVar.a.d(bVar.b);
|
||||
}
|
||||
it.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int e() {
|
||||
return this.a.size();
|
||||
}
|
||||
|
||||
public final void f(c cVar) {
|
||||
if (cVar.e && cVar.f763c.isEmpty()) {
|
||||
b remove = this.g.remove(cVar);
|
||||
Objects.requireNonNull(remove);
|
||||
remove.a.a(remove.b);
|
||||
remove.a.c(remove.f762c);
|
||||
this.h.remove(cVar);
|
||||
}
|
||||
}
|
||||
|
||||
public final void g(c cVar) {
|
||||
t tVar = cVar.a;
|
||||
z zVar = new z(this);
|
||||
a aVar = new a(cVar);
|
||||
this.g.put(cVar, new b(tVar, zVar, aVar));
|
||||
Handler handler = new Handler(f0.o(), null);
|
||||
Objects.requireNonNull(tVar);
|
||||
z.a aVar2 = tVar.f800c;
|
||||
Objects.requireNonNull(aVar2);
|
||||
aVar2.f811c.add(new z.a.C0087a(handler, aVar));
|
||||
Handler handler2 = new Handler(f0.o(), null);
|
||||
q.a aVar3 = tVar.d;
|
||||
Objects.requireNonNull(aVar3);
|
||||
aVar3.f1017c.add(new q.a.C0095a(handler2, aVar));
|
||||
tVar.k(zVar, this.k);
|
||||
}
|
||||
|
||||
public void h(v vVar) {
|
||||
c remove = this.b.remove(vVar);
|
||||
Objects.requireNonNull(remove);
|
||||
remove.a.i(vVar);
|
||||
remove.f763c.remove(((s) vVar).i);
|
||||
if (!this.b.isEmpty()) {
|
||||
d();
|
||||
}
|
||||
f(remove);
|
||||
}
|
||||
|
||||
public final void i(int i, int i2) {
|
||||
for (int i3 = i2 - 1; i3 >= i; i3--) {
|
||||
c remove = this.a.remove(i3);
|
||||
this.f761c.remove(remove.b);
|
||||
b(i3, -remove.a.n.p());
|
||||
remove.e = true;
|
||||
if (this.j) {
|
||||
f(remove);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.os.HandlerThread;
|
||||
import c.i.b.a.l;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class a implements l {
|
||||
public final /* synthetic */ int i;
|
||||
|
||||
public /* synthetic */ a(int i) {
|
||||
this.i = i;
|
||||
}
|
||||
|
||||
@Override // c.i.b.a.l
|
||||
public final Object get() {
|
||||
return new HandlerThread(l.j(this.i, "ExoPlayer:MediaCodecAsyncAdapter:"));
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.os.HandlerThread;
|
||||
import c.i.b.a.l;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class b implements l {
|
||||
public final /* synthetic */ int i;
|
||||
|
||||
public /* synthetic */ b(int i) {
|
||||
this.i = i;
|
||||
}
|
||||
|
||||
@Override // c.i.b.a.l
|
||||
public final Object get() {
|
||||
return new HandlerThread(l.j(this.i, "ExoPlayer:MediaCodecQueueingThread:"));
|
||||
}
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.media.MediaCodec;
|
||||
import c.i.a.c.b2.r;
|
||||
import c.i.a.c.j2.n;
|
||||
import java.util.Objects;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class c implements MediaCodec.OnFrameRenderedListener {
|
||||
public final /* synthetic */ l a;
|
||||
public final /* synthetic */ r.b b;
|
||||
|
||||
public /* synthetic */ c(l lVar, r.b bVar) {
|
||||
this.a = lVar;
|
||||
this.b = bVar;
|
||||
}
|
||||
|
||||
@Override // android.media.MediaCodec.OnFrameRenderedListener
|
||||
public final void onFrameRendered(MediaCodec mediaCodec, long j, long j2) {
|
||||
l lVar = this.a;
|
||||
r.b bVar = this.b;
|
||||
Objects.requireNonNull(lVar);
|
||||
((n.b) bVar).b(lVar, j, j2);
|
||||
}
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class d implements Runnable {
|
||||
public final /* synthetic */ o i;
|
||||
public final /* synthetic */ Runnable j;
|
||||
|
||||
public /* synthetic */ d(o oVar, Runnable runnable) {
|
||||
this.i = oVar;
|
||||
this.j = runnable;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
o oVar = this.i;
|
||||
Runnable runnable = this.j;
|
||||
synchronized (oVar.a) {
|
||||
if (!oVar.l) {
|
||||
long j = oVar.k - 1;
|
||||
oVar.k = j;
|
||||
int i = (j > 0 ? 1 : (j == 0 ? 0 : -1));
|
||||
if (i <= 0) {
|
||||
if (i < 0) {
|
||||
oVar.c(new IllegalStateException());
|
||||
} else {
|
||||
oVar.a();
|
||||
try {
|
||||
runnable.run();
|
||||
} catch (IllegalStateException e) {
|
||||
oVar.c(e);
|
||||
} catch (Exception e2) {
|
||||
oVar.c(new IllegalStateException(e2));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import c.i.a.c.i2.f0;
|
||||
import com.google.android.exoplayer2.mediacodec.MediaCodecUtil;
|
||||
import java.util.regex.Pattern;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class e implements MediaCodecUtil.f {
|
||||
public static final /* synthetic */ e a = new e();
|
||||
|
||||
@Override // com.google.android.exoplayer2.mediacodec.MediaCodecUtil.f
|
||||
public final int a(Object obj) {
|
||||
Pattern pattern = MediaCodecUtil.a;
|
||||
String str = ((s) obj).a;
|
||||
if (str.startsWith("OMX.google") || str.startsWith("c2.android")) {
|
||||
return 1;
|
||||
}
|
||||
return (f0.a >= 26 || !str.equals("OMX.MTK.AUDIO.DECODER.RAW")) ? 0 : -1;
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import com.google.android.exoplayer2.mediacodec.MediaCodecUtil;
|
||||
import java.util.regex.Pattern;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class f implements MediaCodecUtil.f {
|
||||
public static final /* synthetic */ f a = new f();
|
||||
|
||||
@Override // com.google.android.exoplayer2.mediacodec.MediaCodecUtil.f
|
||||
public final int a(Object obj) {
|
||||
Pattern pattern = MediaCodecUtil.a;
|
||||
return ((s) obj).a.startsWith("OMX.google") ? 1 : 0;
|
||||
}
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.mediacodec.MediaCodecUtil;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class g implements MediaCodecUtil.f {
|
||||
public final /* synthetic */ Format a;
|
||||
|
||||
public /* synthetic */ g(Format format) {
|
||||
this.a = format;
|
||||
}
|
||||
|
||||
@Override // com.google.android.exoplayer2.mediacodec.MediaCodecUtil.f
|
||||
public final int a(Object obj) {
|
||||
try {
|
||||
return ((s) obj).e(this.a) ? 1 : 0;
|
||||
} catch (MediaCodecUtil.DecoderQueryException unused) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import com.google.android.exoplayer2.mediacodec.MediaCodecUtil;
|
||||
import java.util.Comparator;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class h implements Comparator {
|
||||
public final /* synthetic */ MediaCodecUtil.f i;
|
||||
|
||||
public /* synthetic */ h(MediaCodecUtil.f fVar) {
|
||||
this.i = fVar;
|
||||
}
|
||||
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(Object obj, Object obj2) {
|
||||
MediaCodecUtil.f fVar = this.i;
|
||||
return fVar.a(obj2) - fVar.a(obj);
|
||||
}
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.media.MediaCodec;
|
||||
import c.i.a.c.b2.r;
|
||||
import c.i.a.c.j2.n;
|
||||
import java.util.Objects;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class i implements MediaCodec.OnFrameRenderedListener {
|
||||
public final /* synthetic */ u a;
|
||||
public final /* synthetic */ r.b b;
|
||||
|
||||
public /* synthetic */ i(u uVar, r.b bVar) {
|
||||
this.a = uVar;
|
||||
this.b = bVar;
|
||||
}
|
||||
|
||||
@Override // android.media.MediaCodec.OnFrameRenderedListener
|
||||
public final void onFrameRendered(MediaCodec mediaCodec, long j, long j2) {
|
||||
u uVar = this.a;
|
||||
r.b bVar = this.b;
|
||||
Objects.requireNonNull(uVar);
|
||||
((n.b) bVar).b(uVar, j, j2);
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.media.MediaCodec;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class j implements Runnable {
|
||||
public final /* synthetic */ MediaCodec i;
|
||||
|
||||
public /* synthetic */ j(MediaCodec mediaCodec) {
|
||||
this.i = mediaCodec;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.i.start();
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import com.google.android.exoplayer2.mediacodec.MediaCodecUtil;
|
||||
import java.util.List;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class k implements t {
|
||||
public static final /* synthetic */ k b = new k();
|
||||
|
||||
@Override // c.i.a.c.b2.t
|
||||
public final List a(String str, boolean z2, boolean z3) {
|
||||
return MediaCodecUtil.e(str, z2, z3);
|
||||
}
|
||||
}
|
|
@ -1,297 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.media.MediaCodec;
|
||||
import android.media.MediaCrypto;
|
||||
import android.media.MediaFormat;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.HandlerThread;
|
||||
import android.view.Surface;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RequiresApi;
|
||||
import c.i.a.c.b2.n;
|
||||
import c.i.a.c.b2.r;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.x1.b;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Objects;
|
||||
/* compiled from: AsynchronousMediaCodecAdapter */
|
||||
@RequiresApi(23)
|
||||
public final class l implements r {
|
||||
public final MediaCodec a;
|
||||
public final o b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final n f764c;
|
||||
public final boolean d;
|
||||
public boolean e;
|
||||
public int f = 0;
|
||||
|
||||
public l(MediaCodec mediaCodec, HandlerThread handlerThread, HandlerThread handlerThread2, boolean z2, boolean z3, a aVar) {
|
||||
this.a = mediaCodec;
|
||||
this.b = new o(handlerThread);
|
||||
this.f764c = new n(mediaCodec, handlerThread2, z2);
|
||||
this.d = z3;
|
||||
}
|
||||
|
||||
public static String j(int i, String str) {
|
||||
StringBuilder sb = new StringBuilder(str);
|
||||
if (i == 1) {
|
||||
sb.append("Audio");
|
||||
} else if (i == 2) {
|
||||
sb.append("Video");
|
||||
} else {
|
||||
sb.append("Unknown(");
|
||||
sb.append(i);
|
||||
sb.append(")");
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void a(int i, int i2, b bVar, long j, int i3) {
|
||||
n nVar = this.f764c;
|
||||
nVar.f();
|
||||
n.a e = n.e();
|
||||
e.a = i;
|
||||
e.b = i2;
|
||||
e.f766c = 0;
|
||||
e.e = j;
|
||||
e.f = i3;
|
||||
MediaCodec.CryptoInfo cryptoInfo = e.d;
|
||||
cryptoInfo.numSubSamples = bVar.f;
|
||||
cryptoInfo.numBytesOfClearData = n.c(bVar.d, cryptoInfo.numBytesOfClearData);
|
||||
cryptoInfo.numBytesOfEncryptedData = n.c(bVar.e, cryptoInfo.numBytesOfEncryptedData);
|
||||
byte[] b = n.b(bVar.b, cryptoInfo.key);
|
||||
Objects.requireNonNull(b);
|
||||
cryptoInfo.key = b;
|
||||
byte[] b2 = n.b(bVar.a, cryptoInfo.iv);
|
||||
Objects.requireNonNull(b2);
|
||||
cryptoInfo.iv = b2;
|
||||
cryptoInfo.mode = bVar.f1008c;
|
||||
if (f0.a >= 24) {
|
||||
cryptoInfo.setPattern(new MediaCodec.CryptoInfo.Pattern(bVar.g, bVar.h));
|
||||
}
|
||||
nVar.e.obtainMessage(1, e).sendToTarget();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void b(int i, long j) {
|
||||
this.a.releaseOutputBuffer(i, j);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public int c() {
|
||||
int i;
|
||||
o oVar = this.b;
|
||||
synchronized (oVar.a) {
|
||||
i = -1;
|
||||
if (!oVar.b()) {
|
||||
IllegalStateException illegalStateException = oVar.m;
|
||||
if (illegalStateException == null) {
|
||||
MediaCodec.CodecException codecException = oVar.j;
|
||||
if (codecException == null) {
|
||||
c.i.a.c.i2.n nVar = oVar.d;
|
||||
if (!(nVar.f906c == 0)) {
|
||||
i = nVar.b();
|
||||
}
|
||||
} else {
|
||||
oVar.j = null;
|
||||
throw codecException;
|
||||
}
|
||||
} else {
|
||||
oVar.m = null;
|
||||
throw illegalStateException;
|
||||
}
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void configure(@Nullable MediaFormat mediaFormat, @Nullable Surface surface, @Nullable MediaCrypto mediaCrypto, int i) {
|
||||
o oVar = this.b;
|
||||
MediaCodec mediaCodec = this.a;
|
||||
AnimatableValueParser.D(oVar.f767c == null);
|
||||
oVar.b.start();
|
||||
Handler handler = new Handler(oVar.b.getLooper());
|
||||
mediaCodec.setCallback(oVar, handler);
|
||||
oVar.f767c = handler;
|
||||
this.a.configure(mediaFormat, surface, mediaCrypto, i);
|
||||
this.f = 1;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public int d(MediaCodec.BufferInfo bufferInfo) {
|
||||
int i;
|
||||
o oVar = this.b;
|
||||
synchronized (oVar.a) {
|
||||
i = -1;
|
||||
if (!oVar.b()) {
|
||||
IllegalStateException illegalStateException = oVar.m;
|
||||
if (illegalStateException == null) {
|
||||
MediaCodec.CodecException codecException = oVar.j;
|
||||
if (codecException == null) {
|
||||
c.i.a.c.i2.n nVar = oVar.e;
|
||||
if (!(nVar.f906c == 0)) {
|
||||
i = nVar.b();
|
||||
if (i >= 0) {
|
||||
AnimatableValueParser.H(oVar.h);
|
||||
MediaCodec.BufferInfo remove = oVar.f.remove();
|
||||
bufferInfo.set(remove.offset, remove.size, remove.presentationTimeUs, remove.flags);
|
||||
} else if (i == -2) {
|
||||
oVar.h = oVar.g.remove();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
oVar.j = null;
|
||||
throw codecException;
|
||||
}
|
||||
} else {
|
||||
oVar.m = null;
|
||||
throw illegalStateException;
|
||||
}
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void e(r.b bVar, Handler handler) {
|
||||
k();
|
||||
this.a.setOnFrameRenderedListener(new c(this, bVar), handler);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void f(int i) {
|
||||
k();
|
||||
this.a.setVideoScalingMode(i);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void flush() {
|
||||
this.f764c.d();
|
||||
this.a.flush();
|
||||
o oVar = this.b;
|
||||
MediaCodec mediaCodec = this.a;
|
||||
Objects.requireNonNull(mediaCodec);
|
||||
j jVar = new j(mediaCodec);
|
||||
synchronized (oVar.a) {
|
||||
oVar.k++;
|
||||
Handler handler = oVar.f767c;
|
||||
int i = f0.a;
|
||||
handler.post(new d(oVar, jVar));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
@Nullable
|
||||
public ByteBuffer g(int i) {
|
||||
return this.a.getInputBuffer(i);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public MediaFormat getOutputFormat() {
|
||||
MediaFormat mediaFormat;
|
||||
o oVar = this.b;
|
||||
synchronized (oVar.a) {
|
||||
mediaFormat = oVar.h;
|
||||
if (mediaFormat == null) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
return mediaFormat;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void h(Surface surface) {
|
||||
k();
|
||||
this.a.setOutputSurface(surface);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
@Nullable
|
||||
public ByteBuffer i(int i) {
|
||||
return this.a.getOutputBuffer(i);
|
||||
}
|
||||
|
||||
public final void k() {
|
||||
if (this.d) {
|
||||
try {
|
||||
this.f764c.a();
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void queueInputBuffer(int i, int i2, int i3, long j, int i4) {
|
||||
n nVar = this.f764c;
|
||||
nVar.f();
|
||||
n.a e = n.e();
|
||||
e.a = i;
|
||||
e.b = i2;
|
||||
e.f766c = i3;
|
||||
e.e = j;
|
||||
e.f = i4;
|
||||
Handler handler = nVar.e;
|
||||
int i5 = f0.a;
|
||||
handler.obtainMessage(0, e).sendToTarget();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void release() {
|
||||
boolean z2 = true;
|
||||
try {
|
||||
if (this.f == 2) {
|
||||
n nVar = this.f764c;
|
||||
if (nVar.i) {
|
||||
nVar.d();
|
||||
nVar.d.quit();
|
||||
}
|
||||
nVar.i = false;
|
||||
}
|
||||
int i = this.f;
|
||||
if (i == 1 || i == 2) {
|
||||
o oVar = this.b;
|
||||
synchronized (oVar.a) {
|
||||
oVar.l = true;
|
||||
oVar.b.quit();
|
||||
oVar.a();
|
||||
}
|
||||
}
|
||||
this.f = 3;
|
||||
} finally {
|
||||
if (!this.e) {
|
||||
this.a.release();
|
||||
this.e = z2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void releaseOutputBuffer(int i, boolean z2) {
|
||||
this.a.releaseOutputBuffer(i, z2);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void setParameters(Bundle bundle) {
|
||||
k();
|
||||
this.a.setParameters(bundle);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void start() {
|
||||
n nVar = this.f764c;
|
||||
if (!nVar.i) {
|
||||
nVar.d.start();
|
||||
nVar.e = new m(nVar, nVar.d.getLooper());
|
||||
nVar.i = true;
|
||||
}
|
||||
this.a.start();
|
||||
this.f = 2;
|
||||
}
|
||||
}
|
|
@ -1,66 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.media.MediaCodec;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.os.Message;
|
||||
import c.i.a.c.b2.n;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.Objects;
|
||||
/* compiled from: AsynchronousMediaCodecBufferEnqueuer */
|
||||
public class m extends Handler {
|
||||
public final /* synthetic */ n a;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public m(n nVar, Looper looper) {
|
||||
super(looper);
|
||||
this.a = nVar;
|
||||
}
|
||||
|
||||
@Override // android.os.Handler
|
||||
public void handleMessage(Message message) {
|
||||
n.a aVar;
|
||||
n nVar = this.a;
|
||||
Objects.requireNonNull(nVar);
|
||||
int i = message.what;
|
||||
if (i == 0) {
|
||||
aVar = (n.a) message.obj;
|
||||
try {
|
||||
nVar.f765c.queueInputBuffer(aVar.a, aVar.b, aVar.f766c, aVar.e, aVar.f);
|
||||
} catch (RuntimeException e) {
|
||||
nVar.f.set(e);
|
||||
}
|
||||
} else if (i != 1) {
|
||||
if (i != 2) {
|
||||
nVar.f.set(new IllegalStateException(String.valueOf(message.what)));
|
||||
} else {
|
||||
nVar.g.b();
|
||||
}
|
||||
aVar = null;
|
||||
} else {
|
||||
aVar = (n.a) message.obj;
|
||||
int i2 = aVar.a;
|
||||
int i3 = aVar.b;
|
||||
MediaCodec.CryptoInfo cryptoInfo = aVar.d;
|
||||
long j = aVar.e;
|
||||
int i4 = aVar.f;
|
||||
try {
|
||||
if (nVar.h) {
|
||||
synchronized (n.b) {
|
||||
nVar.f765c.queueSecureInputBuffer(i2, i3, cryptoInfo, j, i4);
|
||||
}
|
||||
} else {
|
||||
nVar.f765c.queueSecureInputBuffer(i2, i3, cryptoInfo, j, i4);
|
||||
}
|
||||
} catch (RuntimeException e2) {
|
||||
nVar.f.set(e2);
|
||||
}
|
||||
}
|
||||
if (aVar != null) {
|
||||
ArrayDeque<n.a> arrayDeque = n.a;
|
||||
synchronized (arrayDeque) {
|
||||
arrayDeque.add(aVar);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,126 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.media.MediaCodec;
|
||||
import android.os.Handler;
|
||||
import android.os.HandlerThread;
|
||||
import androidx.annotation.GuardedBy;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RequiresApi;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.j;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
/* compiled from: AsynchronousMediaCodecBufferEnqueuer */
|
||||
@RequiresApi(23)
|
||||
public class n {
|
||||
@GuardedBy("MESSAGE_PARAMS_INSTANCE_POOL")
|
||||
public static final ArrayDeque<a> a = new ArrayDeque<>();
|
||||
public static final Object b = new Object();
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final MediaCodec f765c;
|
||||
public final HandlerThread d;
|
||||
public Handler e;
|
||||
public final AtomicReference<RuntimeException> f = new AtomicReference<>();
|
||||
public final j g;
|
||||
public final boolean h;
|
||||
public boolean i;
|
||||
|
||||
/* compiled from: AsynchronousMediaCodecBufferEnqueuer */
|
||||
public static class a {
|
||||
public int a;
|
||||
public int b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public int f766c;
|
||||
public final MediaCodec.CryptoInfo d = new MediaCodec.CryptoInfo();
|
||||
public long e;
|
||||
public int f;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:8:0x0033, code lost:
|
||||
if ((r4.contains("samsung") || r4.contains("motorola")) != false) goto L_0x0035;
|
||||
*/
|
||||
public n(MediaCodec mediaCodec, HandlerThread handlerThread, boolean z2) {
|
||||
j jVar = new j();
|
||||
this.f765c = mediaCodec;
|
||||
this.d = handlerThread;
|
||||
this.g = jVar;
|
||||
boolean z3 = false;
|
||||
if (!z2) {
|
||||
String K = f0.K(f0.f904c);
|
||||
}
|
||||
z3 = true;
|
||||
this.h = z3;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static byte[] b(@Nullable byte[] bArr, @Nullable byte[] bArr2) {
|
||||
if (bArr == null) {
|
||||
return bArr2;
|
||||
}
|
||||
if (bArr2 == null || bArr2.length < bArr.length) {
|
||||
return Arrays.copyOf(bArr, bArr.length);
|
||||
}
|
||||
System.arraycopy(bArr, 0, bArr2, 0, bArr.length);
|
||||
return bArr2;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static int[] c(@Nullable int[] iArr, @Nullable int[] iArr2) {
|
||||
if (iArr == null) {
|
||||
return iArr2;
|
||||
}
|
||||
if (iArr2 == null || iArr2.length < iArr.length) {
|
||||
return Arrays.copyOf(iArr, iArr.length);
|
||||
}
|
||||
System.arraycopy(iArr, 0, iArr2, 0, iArr.length);
|
||||
return iArr2;
|
||||
}
|
||||
|
||||
public static a e() {
|
||||
ArrayDeque<a> arrayDeque = a;
|
||||
synchronized (arrayDeque) {
|
||||
if (arrayDeque.isEmpty()) {
|
||||
return new a();
|
||||
}
|
||||
return arrayDeque.removeFirst();
|
||||
}
|
||||
}
|
||||
|
||||
public final void a() throws InterruptedException {
|
||||
this.g.a();
|
||||
Handler handler = this.e;
|
||||
int i = f0.a;
|
||||
handler.obtainMessage(2).sendToTarget();
|
||||
j jVar = this.g;
|
||||
synchronized (jVar) {
|
||||
while (!jVar.b) {
|
||||
jVar.wait();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void d() {
|
||||
if (this.i) {
|
||||
try {
|
||||
Handler handler = this.e;
|
||||
int i = f0.a;
|
||||
handler.removeCallbacksAndMessages(null);
|
||||
a();
|
||||
f();
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void f() {
|
||||
RuntimeException andSet = this.f.getAndSet(null);
|
||||
if (andSet != null) {
|
||||
throw andSet;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,119 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.media.MediaCodec;
|
||||
import android.media.MediaFormat;
|
||||
import android.os.Handler;
|
||||
import android.os.HandlerThread;
|
||||
import androidx.annotation.GuardedBy;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RequiresApi;
|
||||
import c.i.a.c.i2.n;
|
||||
import java.util.ArrayDeque;
|
||||
/* compiled from: AsynchronousMediaCodecCallback */
|
||||
@RequiresApi(23)
|
||||
public final class o extends MediaCodec.Callback {
|
||||
public final Object a = new Object();
|
||||
public final HandlerThread b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public Handler f767c;
|
||||
@GuardedBy("lock")
|
||||
public final n d;
|
||||
@GuardedBy("lock")
|
||||
public final n e;
|
||||
@GuardedBy("lock")
|
||||
public final ArrayDeque<MediaCodec.BufferInfo> f;
|
||||
@GuardedBy("lock")
|
||||
public final ArrayDeque<MediaFormat> g;
|
||||
@Nullable
|
||||
@GuardedBy("lock")
|
||||
public MediaFormat h;
|
||||
@Nullable
|
||||
@GuardedBy("lock")
|
||||
public MediaFormat i;
|
||||
@Nullable
|
||||
@GuardedBy("lock")
|
||||
public MediaCodec.CodecException j;
|
||||
@GuardedBy("lock")
|
||||
public long k;
|
||||
@GuardedBy("lock")
|
||||
public boolean l;
|
||||
@Nullable
|
||||
@GuardedBy("lock")
|
||||
public IllegalStateException m;
|
||||
|
||||
public o(HandlerThread handlerThread) {
|
||||
this.b = handlerThread;
|
||||
this.d = new n();
|
||||
this.e = new n();
|
||||
this.f = new ArrayDeque<>();
|
||||
this.g = new ArrayDeque<>();
|
||||
}
|
||||
|
||||
@GuardedBy("lock")
|
||||
public final void a() {
|
||||
if (!this.g.isEmpty()) {
|
||||
this.i = this.g.getLast();
|
||||
}
|
||||
n nVar = this.d;
|
||||
nVar.a = 0;
|
||||
nVar.b = -1;
|
||||
nVar.f906c = 0;
|
||||
n nVar2 = this.e;
|
||||
nVar2.a = 0;
|
||||
nVar2.b = -1;
|
||||
nVar2.f906c = 0;
|
||||
this.f.clear();
|
||||
this.g.clear();
|
||||
this.j = null;
|
||||
}
|
||||
|
||||
@GuardedBy("lock")
|
||||
public final boolean b() {
|
||||
return this.k > 0 || this.l;
|
||||
}
|
||||
|
||||
public final void c(IllegalStateException illegalStateException) {
|
||||
synchronized (this.a) {
|
||||
this.m = illegalStateException;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.media.MediaCodec.Callback
|
||||
public void onError(@NonNull MediaCodec mediaCodec, @NonNull MediaCodec.CodecException codecException) {
|
||||
synchronized (this.a) {
|
||||
this.j = codecException;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.media.MediaCodec.Callback
|
||||
public void onInputBufferAvailable(@NonNull MediaCodec mediaCodec, int i) {
|
||||
synchronized (this.a) {
|
||||
this.d.a(i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.media.MediaCodec.Callback
|
||||
public void onOutputBufferAvailable(@NonNull MediaCodec mediaCodec, int i, @NonNull MediaCodec.BufferInfo bufferInfo) {
|
||||
synchronized (this.a) {
|
||||
MediaFormat mediaFormat = this.i;
|
||||
if (mediaFormat != null) {
|
||||
this.e.a(-2);
|
||||
this.g.add(mediaFormat);
|
||||
this.i = null;
|
||||
}
|
||||
this.e.a(i);
|
||||
this.f.add(bufferInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.media.MediaCodec.Callback
|
||||
public void onOutputFormatChanged(@NonNull MediaCodec mediaCodec, @NonNull MediaFormat mediaFormat) {
|
||||
synchronized (this.a) {
|
||||
this.e.a(-2);
|
||||
this.g.add(mediaFormat);
|
||||
this.i = null;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,71 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.decoder.DecoderInputBuffer;
|
||||
import java.nio.ByteBuffer;
|
||||
/* compiled from: BatchBuffer */
|
||||
public final class p extends DecoderInputBuffer {
|
||||
public long q;
|
||||
public int r;
|
||||
|
||||
/* renamed from: s reason: collision with root package name */
|
||||
public int f768s = 32;
|
||||
|
||||
public p() {
|
||||
super(2);
|
||||
}
|
||||
|
||||
@Override // com.google.android.exoplayer2.decoder.DecoderInputBuffer
|
||||
public void p() {
|
||||
super.p();
|
||||
this.r = 0;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:13:0x0049, code lost:
|
||||
if ((r0.remaining() + r3.position()) > 3072000) goto L_0x0028;
|
||||
*/
|
||||
/* JADX WARNING: Removed duplicated region for block: B:15:0x004e A[RETURN] */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:16:0x004f */
|
||||
public boolean u(DecoderInputBuffer decoderInputBuffer) {
|
||||
boolean z2;
|
||||
AnimatableValueParser.k(!decoderInputBuffer.t());
|
||||
AnimatableValueParser.k(!decoderInputBuffer.l());
|
||||
AnimatableValueParser.k(!decoderInputBuffer.n());
|
||||
if (v()) {
|
||||
if (this.r < this.f768s && decoderInputBuffer.m() == m()) {
|
||||
ByteBuffer byteBuffer = decoderInputBuffer.k;
|
||||
if (!(byteBuffer == null || (r3 = this.k) == null)) {
|
||||
}
|
||||
}
|
||||
z2 = false;
|
||||
if (z2) {
|
||||
return false;
|
||||
}
|
||||
int i = this.r;
|
||||
this.r = i + 1;
|
||||
if (i == 0) {
|
||||
this.m = decoderInputBuffer.m;
|
||||
if (decoderInputBuffer.o()) {
|
||||
this.i = 1;
|
||||
}
|
||||
}
|
||||
if (decoderInputBuffer.m()) {
|
||||
this.i = Integer.MIN_VALUE;
|
||||
}
|
||||
ByteBuffer byteBuffer2 = decoderInputBuffer.k;
|
||||
if (byteBuffer2 != null) {
|
||||
r(byteBuffer2.remaining());
|
||||
this.k.put(byteBuffer2);
|
||||
}
|
||||
this.q = decoderInputBuffer.m;
|
||||
return true;
|
||||
}
|
||||
z2 = true;
|
||||
if (z2) {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean v() {
|
||||
return this.r > 0;
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
/* compiled from: C2Mp3TimestampTracker */
|
||||
public final class q {
|
||||
public long a;
|
||||
public long b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public boolean f769c;
|
||||
}
|
|
@ -1,66 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.media.MediaCodec;
|
||||
import android.media.MediaCrypto;
|
||||
import android.media.MediaFormat;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.view.Surface;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RequiresApi;
|
||||
import c.i.a.c.b2.u;
|
||||
import java.nio.ByteBuffer;
|
||||
/* compiled from: MediaCodecAdapter */
|
||||
public interface r {
|
||||
|
||||
/* compiled from: MediaCodecAdapter */
|
||||
public interface a {
|
||||
public static final a a = new u.b();
|
||||
|
||||
r a(MediaCodec mediaCodec);
|
||||
}
|
||||
|
||||
/* compiled from: MediaCodecAdapter */
|
||||
public interface b {
|
||||
}
|
||||
|
||||
void a(int i, int i2, c.i.a.c.x1.b bVar, long j, int i3);
|
||||
|
||||
@RequiresApi(21)
|
||||
void b(int i, long j);
|
||||
|
||||
int c();
|
||||
|
||||
void configure(@Nullable MediaFormat mediaFormat, @Nullable Surface surface, @Nullable MediaCrypto mediaCrypto, int i);
|
||||
|
||||
int d(MediaCodec.BufferInfo bufferInfo);
|
||||
|
||||
@RequiresApi(23)
|
||||
void e(b bVar, Handler handler);
|
||||
|
||||
void f(int i);
|
||||
|
||||
void flush();
|
||||
|
||||
@Nullable
|
||||
ByteBuffer g(int i);
|
||||
|
||||
MediaFormat getOutputFormat();
|
||||
|
||||
@RequiresApi(23)
|
||||
void h(Surface surface);
|
||||
|
||||
@Nullable
|
||||
ByteBuffer i(int i);
|
||||
|
||||
void queueInputBuffer(int i, int i2, int i3, long j, int i4);
|
||||
|
||||
void release();
|
||||
|
||||
void releaseOutputBuffer(int i, boolean z2);
|
||||
|
||||
@RequiresApi(19)
|
||||
void setParameters(Bundle bundle);
|
||||
|
||||
void start();
|
||||
}
|
|
@ -1,373 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.graphics.Point;
|
||||
import android.media.MediaCodecInfo;
|
||||
import android.util.Log;
|
||||
import android.util.Pair;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RequiresApi;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import c.d.b.a.a;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.x1.e;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.mediacodec.MediaCodecUtil;
|
||||
import java.util.Objects;
|
||||
/* compiled from: MediaCodecInfo */
|
||||
public final class s {
|
||||
public final String a;
|
||||
public final String b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final String f770c;
|
||||
@Nullable
|
||||
public final MediaCodecInfo.CodecCapabilities d;
|
||||
public final boolean e;
|
||||
public final boolean f;
|
||||
public final boolean g;
|
||||
|
||||
@VisibleForTesting
|
||||
public s(String str, String str2, String str3, @Nullable MediaCodecInfo.CodecCapabilities codecCapabilities, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7) {
|
||||
Objects.requireNonNull(str);
|
||||
this.a = str;
|
||||
this.b = str2;
|
||||
this.f770c = str3;
|
||||
this.d = codecCapabilities;
|
||||
this.e = z5;
|
||||
this.f = z7;
|
||||
this.g = c.i.a.c.i2.s.j(str2);
|
||||
}
|
||||
|
||||
@RequiresApi(21)
|
||||
public static Point a(MediaCodecInfo.VideoCapabilities videoCapabilities, int i, int i2) {
|
||||
int widthAlignment = videoCapabilities.getWidthAlignment();
|
||||
int heightAlignment = videoCapabilities.getHeightAlignment();
|
||||
return new Point(f0.f(i, widthAlignment) * widthAlignment, f0.f(i2, heightAlignment) * heightAlignment);
|
||||
}
|
||||
|
||||
@RequiresApi(21)
|
||||
public static boolean b(MediaCodecInfo.VideoCapabilities videoCapabilities, int i, int i2, double d) {
|
||||
Point a = a(videoCapabilities, i, i2);
|
||||
int i3 = a.x;
|
||||
int i4 = a.y;
|
||||
return (d == -1.0d || d < 1.0d) ? videoCapabilities.isSizeSupported(i3, i4) : videoCapabilities.areSizeAndRateSupported(i3, i4, Math.floor(d));
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:44:0x0076, code lost:
|
||||
if ((c.i.a.c.i2.f0.a >= 21 && r15.isFeatureSupported("secure-playback")) != false) goto L_0x007b;
|
||||
*/
|
||||
/* JADX WARNING: Removed duplicated region for block: B:23:0x0048 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:27:0x004f */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:37:0x0065 */
|
||||
public static s i(String str, String str2, String str3, @Nullable MediaCodecInfo.CodecCapabilities codecCapabilities, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) {
|
||||
boolean z7;
|
||||
boolean z8;
|
||||
boolean z9;
|
||||
boolean z10;
|
||||
if (!z5 && codecCapabilities != null) {
|
||||
int i = f0.a;
|
||||
if (i >= 19 && codecCapabilities.isFeatureSupported("adaptive-playback")) {
|
||||
if (i <= 22) {
|
||||
String str4 = f0.d;
|
||||
if (("ODROID-XU3".equals(str4) || "Nexus 10".equals(str4)) && ("OMX.Exynos.AVC.Decoder".equals(str) || "OMX.Exynos.AVC.Decoder.secure".equals(str))) {
|
||||
z10 = true;
|
||||
if (!z10) {
|
||||
z7 = true;
|
||||
if (codecCapabilities != null) {
|
||||
if (f0.a >= 21 && codecCapabilities.isFeatureSupported("tunneled-playback")) {
|
||||
z8 = true;
|
||||
if (!z6) {
|
||||
if (codecCapabilities != null) {
|
||||
}
|
||||
z9 = false;
|
||||
return new s(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9);
|
||||
}
|
||||
z9 = true;
|
||||
return new s(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9);
|
||||
}
|
||||
}
|
||||
z8 = false;
|
||||
if (!z6) {
|
||||
}
|
||||
z9 = true;
|
||||
return new s(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9);
|
||||
}
|
||||
}
|
||||
}
|
||||
z10 = false;
|
||||
if (!z10) {
|
||||
}
|
||||
}
|
||||
}
|
||||
z7 = false;
|
||||
if (codecCapabilities != null) {
|
||||
}
|
||||
z8 = false;
|
||||
if (!z6) {
|
||||
}
|
||||
z9 = true;
|
||||
return new s(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9);
|
||||
}
|
||||
|
||||
public e c(Format format, Format format2) {
|
||||
boolean z2 = false;
|
||||
int i = !f0.a(format.t, format2.t) ? 8 : 0;
|
||||
if (this.g) {
|
||||
if (format.B != format2.B) {
|
||||
i |= 1024;
|
||||
}
|
||||
if (!this.e && !(format.f2214y == format2.f2214y && format.f2215z == format2.f2215z)) {
|
||||
i |= 512;
|
||||
}
|
||||
if (!f0.a(format.F, format2.F)) {
|
||||
i |= 2048;
|
||||
}
|
||||
String str = this.a;
|
||||
if (f0.d.startsWith("SM-T230") && "OMX.MARVELL.VIDEO.HW.CODA7542DECODER".equals(str)) {
|
||||
z2 = true;
|
||||
}
|
||||
if (z2 && !format.b(format2)) {
|
||||
i |= 2;
|
||||
}
|
||||
if (i == 0) {
|
||||
return new e(this.a, format, format2, format.b(format2) ? 3 : 2, 0);
|
||||
}
|
||||
} else {
|
||||
if (format.G != format2.G) {
|
||||
i |= 4096;
|
||||
}
|
||||
if (format.H != format2.H) {
|
||||
i |= 8192;
|
||||
}
|
||||
if (format.I != format2.I) {
|
||||
i |= 16384;
|
||||
}
|
||||
if (i == 0 && "audio/mp4a-latm".equals(this.b)) {
|
||||
Pair<Integer, Integer> c2 = MediaCodecUtil.c(format);
|
||||
Pair<Integer, Integer> c3 = MediaCodecUtil.c(format2);
|
||||
if (!(c2 == null || c3 == null)) {
|
||||
int intValue = ((Integer) c2.first).intValue();
|
||||
int intValue2 = ((Integer) c3.first).intValue();
|
||||
if (intValue == 42 && intValue2 == 42) {
|
||||
return new e(this.a, format, format2, 3, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!format.b(format2)) {
|
||||
i |= 32;
|
||||
}
|
||||
if ("audio/opus".equals(this.b)) {
|
||||
i |= 2;
|
||||
}
|
||||
if (i == 0) {
|
||||
return new e(this.a, format, format2, 1, 0);
|
||||
}
|
||||
}
|
||||
return new e(this.a, format, format2, 0, i);
|
||||
}
|
||||
|
||||
public MediaCodecInfo.CodecProfileLevel[] d() {
|
||||
MediaCodecInfo.CodecProfileLevel[] codecProfileLevelArr;
|
||||
MediaCodecInfo.CodecCapabilities codecCapabilities = this.d;
|
||||
return (codecCapabilities == null || (codecProfileLevelArr = codecCapabilities.profileLevels) == null) ? new MediaCodecInfo.CodecProfileLevel[0] : codecProfileLevelArr;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:156:? A[RETURN, SYNTHETIC] */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:157:? A[RETURN, SYNTHETIC] */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:70:0x0118 A[RETURN] */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:71:0x0119 */
|
||||
public boolean e(Format format) throws MediaCodecUtil.DecoderQueryException {
|
||||
boolean z2;
|
||||
boolean z3;
|
||||
boolean z4;
|
||||
int i;
|
||||
String c2;
|
||||
MediaCodecInfo.VideoCapabilities videoCapabilities;
|
||||
String str = format.q;
|
||||
int i2 = 16;
|
||||
boolean z5 = false;
|
||||
if (!(str == null || this.b == null || (c2 = c.i.a.c.i2.s.c(str)) == null)) {
|
||||
if (!this.b.equals(c2)) {
|
||||
StringBuilder K = a.K("codec.mime ");
|
||||
K.append(format.q);
|
||||
K.append(", ");
|
||||
K.append(c2);
|
||||
h(K.toString());
|
||||
} else {
|
||||
Pair<Integer, Integer> c3 = MediaCodecUtil.c(format);
|
||||
if (c3 != null) {
|
||||
int intValue = ((Integer) c3.first).intValue();
|
||||
int intValue2 = ((Integer) c3.second).intValue();
|
||||
if (this.g || intValue == 42) {
|
||||
MediaCodecInfo.CodecProfileLevel[] d = d();
|
||||
if (f0.a <= 23 && "video/x-vnd.on2.vp9".equals(this.b) && d.length == 0) {
|
||||
MediaCodecInfo.CodecCapabilities codecCapabilities = this.d;
|
||||
int intValue3 = (codecCapabilities == null || (videoCapabilities = codecCapabilities.getVideoCapabilities()) == null) ? 0 : videoCapabilities.getBitrateRange().getUpper().intValue();
|
||||
int i3 = intValue3 >= 180000000 ? 1024 : intValue3 >= 120000000 ? 512 : intValue3 >= 60000000 ? 256 : intValue3 >= 30000000 ? 128 : intValue3 >= 18000000 ? 64 : intValue3 >= 12000000 ? 32 : intValue3 >= 7200000 ? 16 : intValue3 >= 3600000 ? 8 : intValue3 >= 1800000 ? 4 : intValue3 >= 800000 ? 2 : 1;
|
||||
MediaCodecInfo.CodecProfileLevel codecProfileLevel = new MediaCodecInfo.CodecProfileLevel();
|
||||
codecProfileLevel.profile = 1;
|
||||
codecProfileLevel.level = i3;
|
||||
d = new MediaCodecInfo.CodecProfileLevel[]{codecProfileLevel};
|
||||
}
|
||||
for (MediaCodecInfo.CodecProfileLevel codecProfileLevel2 : d) {
|
||||
if (codecProfileLevel2.profile != intValue || codecProfileLevel2.level < intValue2) {
|
||||
}
|
||||
}
|
||||
StringBuilder K2 = a.K("codec.profileLevel, ");
|
||||
K2.append(format.q);
|
||||
K2.append(", ");
|
||||
K2.append(c2);
|
||||
h(K2.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
z2 = false;
|
||||
if (z2) {
|
||||
return false;
|
||||
}
|
||||
if (this.g) {
|
||||
int i4 = format.f2214y;
|
||||
if (i4 <= 0 || (i = format.f2215z) <= 0) {
|
||||
return true;
|
||||
}
|
||||
if (f0.a >= 21) {
|
||||
return g(i4, i, (double) format.A);
|
||||
}
|
||||
if (i4 * i <= MediaCodecUtil.i()) {
|
||||
z5 = true;
|
||||
}
|
||||
if (!z5) {
|
||||
StringBuilder K3 = a.K("legacyFrameSize, ");
|
||||
K3.append(format.f2214y);
|
||||
K3.append("x");
|
||||
K3.append(format.f2215z);
|
||||
h(K3.toString());
|
||||
}
|
||||
return z5;
|
||||
}
|
||||
int i5 = f0.a;
|
||||
if (i5 >= 21) {
|
||||
int i6 = format.H;
|
||||
if (i6 != -1) {
|
||||
MediaCodecInfo.CodecCapabilities codecCapabilities2 = this.d;
|
||||
if (codecCapabilities2 == null) {
|
||||
h("sampleRate.caps");
|
||||
} else {
|
||||
MediaCodecInfo.AudioCapabilities audioCapabilities = codecCapabilities2.getAudioCapabilities();
|
||||
if (audioCapabilities == null) {
|
||||
h("sampleRate.aCaps");
|
||||
} else if (!audioCapabilities.isSampleRateSupported(i6)) {
|
||||
h("sampleRate.support, " + i6);
|
||||
} else {
|
||||
z4 = true;
|
||||
if (!z4) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
z4 = false;
|
||||
if (!z4) {
|
||||
}
|
||||
}
|
||||
int i7 = format.G;
|
||||
if (i7 != -1) {
|
||||
MediaCodecInfo.CodecCapabilities codecCapabilities3 = this.d;
|
||||
if (codecCapabilities3 == null) {
|
||||
h("channelCount.caps");
|
||||
} else {
|
||||
MediaCodecInfo.AudioCapabilities audioCapabilities2 = codecCapabilities3.getAudioCapabilities();
|
||||
if (audioCapabilities2 == null) {
|
||||
h("channelCount.aCaps");
|
||||
} else {
|
||||
String str2 = this.a;
|
||||
String str3 = this.b;
|
||||
int maxInputChannelCount = audioCapabilities2.getMaxInputChannelCount();
|
||||
if (maxInputChannelCount <= 1 && ((i5 < 26 || maxInputChannelCount <= 0) && !"audio/mpeg".equals(str3) && !"audio/3gpp".equals(str3) && !"audio/amr-wb".equals(str3) && !"audio/mp4a-latm".equals(str3) && !"audio/vorbis".equals(str3) && !"audio/opus".equals(str3) && !"audio/raw".equals(str3) && !"audio/flac".equals(str3) && !"audio/g711-alaw".equals(str3) && !"audio/g711-mlaw".equals(str3) && !"audio/gsm".equals(str3))) {
|
||||
if ("audio/ac3".equals(str3)) {
|
||||
i2 = 6;
|
||||
} else if (!"audio/eac3".equals(str3)) {
|
||||
i2 = 30;
|
||||
}
|
||||
Log.w("MediaCodecInfo", "AssumedMaxChannelAdjustment: " + str2 + ", [" + maxInputChannelCount + " to " + i2 + "]");
|
||||
maxInputChannelCount = i2;
|
||||
}
|
||||
if (maxInputChannelCount < i7) {
|
||||
h("channelCount.support, " + i7);
|
||||
} else {
|
||||
z3 = true;
|
||||
if (z3) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
z3 = false;
|
||||
if (z3) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
z2 = true;
|
||||
if (z2) {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean f(Format format) {
|
||||
if (this.g) {
|
||||
return this.e;
|
||||
}
|
||||
Pair<Integer, Integer> c2 = MediaCodecUtil.c(format);
|
||||
return c2 != null && ((Integer) c2.first).intValue() == 42;
|
||||
}
|
||||
|
||||
@RequiresApi(21)
|
||||
public boolean g(int i, int i2, double d) {
|
||||
MediaCodecInfo.CodecCapabilities codecCapabilities = this.d;
|
||||
if (codecCapabilities == null) {
|
||||
h("sizeAndRate.caps");
|
||||
return false;
|
||||
}
|
||||
MediaCodecInfo.VideoCapabilities videoCapabilities = codecCapabilities.getVideoCapabilities();
|
||||
if (videoCapabilities == null) {
|
||||
h("sizeAndRate.vCaps");
|
||||
return false;
|
||||
}
|
||||
if (!b(videoCapabilities, i, i2, d)) {
|
||||
if (i < i2) {
|
||||
if ((!"OMX.MTK.VIDEO.DECODER.HEVC".equals(this.a) || !"mcv5a".equals(f0.b)) && b(videoCapabilities, i2, i, d)) {
|
||||
StringBuilder M = a.M("sizeAndRate.rotated, ", i, "x", i2, "x");
|
||||
M.append(d);
|
||||
StringBuilder P = a.P("AssumedSupport [", M.toString(), "] [");
|
||||
P.append(this.a);
|
||||
P.append(", ");
|
||||
P.append(this.b);
|
||||
P.append("] [");
|
||||
P.append(f0.e);
|
||||
P.append("]");
|
||||
Log.d("MediaCodecInfo", P.toString());
|
||||
}
|
||||
}
|
||||
StringBuilder M2 = a.M("sizeAndRate.support, ", i, "x", i2, "x");
|
||||
M2.append(d);
|
||||
h(M2.toString());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public final void h(String str) {
|
||||
StringBuilder P = a.P("NoSupport [", str, "] [");
|
||||
P.append(this.a);
|
||||
P.append(", ");
|
||||
P.append(this.b);
|
||||
P.append("] [");
|
||||
P.append(f0.e);
|
||||
P.append("]");
|
||||
Log.d("MediaCodecInfo", P.toString());
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return this.a;
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import com.google.android.exoplayer2.mediacodec.MediaCodecUtil;
|
||||
import java.util.List;
|
||||
/* compiled from: MediaCodecSelector */
|
||||
public interface t {
|
||||
public static final /* synthetic */ int a = 0;
|
||||
|
||||
List<s> a(String str, boolean z2, boolean z3) throws MediaCodecUtil.DecoderQueryException;
|
||||
}
|
|
@ -1,140 +0,0 @@
|
|||
package c.i.a.c.b2;
|
||||
|
||||
import android.media.MediaCodec;
|
||||
import android.media.MediaCrypto;
|
||||
import android.media.MediaFormat;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.view.Surface;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RequiresApi;
|
||||
import c.i.a.c.b2.r;
|
||||
import c.i.a.c.i2.f0;
|
||||
import java.nio.ByteBuffer;
|
||||
/* compiled from: SynchronousMediaCodecAdapter */
|
||||
public final class u implements r {
|
||||
public final MediaCodec a;
|
||||
@Nullable
|
||||
public ByteBuffer[] b;
|
||||
@Nullable
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public ByteBuffer[] f771c;
|
||||
|
||||
/* compiled from: SynchronousMediaCodecAdapter */
|
||||
public static final class b implements r.a {
|
||||
@Override // c.i.a.c.b2.r.a
|
||||
public r a(MediaCodec mediaCodec) {
|
||||
return new u(mediaCodec, null);
|
||||
}
|
||||
}
|
||||
|
||||
public u(MediaCodec mediaCodec, a aVar) {
|
||||
this.a = mediaCodec;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void a(int i, int i2, c.i.a.c.x1.b bVar, long j, int i3) {
|
||||
this.a.queueSecureInputBuffer(i, i2, bVar.i, j, i3);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
@RequiresApi(21)
|
||||
public void b(int i, long j) {
|
||||
this.a.releaseOutputBuffer(i, j);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public int c() {
|
||||
return this.a.dequeueInputBuffer(0);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void configure(@Nullable MediaFormat mediaFormat, @Nullable Surface surface, @Nullable MediaCrypto mediaCrypto, int i) {
|
||||
this.a.configure(mediaFormat, surface, mediaCrypto, i);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public int d(MediaCodec.BufferInfo bufferInfo) {
|
||||
int dequeueOutputBuffer;
|
||||
do {
|
||||
dequeueOutputBuffer = this.a.dequeueOutputBuffer(bufferInfo, 0);
|
||||
if (dequeueOutputBuffer == -3 && f0.a < 21) {
|
||||
this.f771c = this.a.getOutputBuffers();
|
||||
continue;
|
||||
}
|
||||
} while (dequeueOutputBuffer == -3);
|
||||
return dequeueOutputBuffer;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
@RequiresApi(23)
|
||||
public void e(r.b bVar, Handler handler) {
|
||||
this.a.setOnFrameRenderedListener(new i(this, bVar), handler);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void f(int i) {
|
||||
this.a.setVideoScalingMode(i);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void flush() {
|
||||
this.a.flush();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
@Nullable
|
||||
public ByteBuffer g(int i) {
|
||||
return f0.a >= 21 ? this.a.getInputBuffer(i) : this.b[i];
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public MediaFormat getOutputFormat() {
|
||||
return this.a.getOutputFormat();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
@RequiresApi(23)
|
||||
public void h(Surface surface) {
|
||||
this.a.setOutputSurface(surface);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
@Nullable
|
||||
public ByteBuffer i(int i) {
|
||||
return f0.a >= 21 ? this.a.getOutputBuffer(i) : this.f771c[i];
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void queueInputBuffer(int i, int i2, int i3, long j, int i4) {
|
||||
this.a.queueInputBuffer(i, i2, i3, j, i4);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void release() {
|
||||
this.b = null;
|
||||
this.f771c = null;
|
||||
this.a.release();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void releaseOutputBuffer(int i, boolean z2) {
|
||||
this.a.releaseOutputBuffer(i, z2);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
@RequiresApi(19)
|
||||
public void setParameters(Bundle bundle) {
|
||||
this.a.setParameters(bundle);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.b2.r
|
||||
public void start() {
|
||||
this.a.start();
|
||||
if (f0.a < 21) {
|
||||
this.b = this.a.getInputBuffers();
|
||||
this.f771c = this.a.getOutputBuffers();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
package c.i.a.c;
|
||||
|
||||
import c.i.a.c.g1;
|
||||
import c.i.a.c.i2.o;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class c implements o.a {
|
||||
public final /* synthetic */ c1 a;
|
||||
public final /* synthetic */ int b;
|
||||
|
||||
public /* synthetic */ c(c1 c1Var, int i) {
|
||||
this.a = c1Var;
|
||||
this.b = i;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.i2.o.a
|
||||
public final void invoke(Object obj) {
|
||||
c1 c1Var = this.a;
|
||||
((g1.a) obj).p(c1Var.b, this.b);
|
||||
}
|
||||
}
|
|
@ -1,226 +0,0 @@
|
|||
package c.i.a.c;
|
||||
|
||||
import android.util.Pair;
|
||||
import c.i.a.c.d2.h0;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.r1;
|
||||
import java.util.Objects;
|
||||
/* compiled from: AbstractConcatenatedTimeline */
|
||||
public abstract class c0 extends r1 {
|
||||
public final int b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final h0 f772c;
|
||||
public final boolean d;
|
||||
|
||||
public c0(boolean z2, h0 h0Var) {
|
||||
this.d = z2;
|
||||
this.f772c = h0Var;
|
||||
this.b = h0Var.b();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.r1
|
||||
public int a(boolean z2) {
|
||||
if (this.b == 0) {
|
||||
return -1;
|
||||
}
|
||||
int i = 0;
|
||||
if (this.d) {
|
||||
z2 = false;
|
||||
}
|
||||
if (z2) {
|
||||
i = this.f772c.c();
|
||||
}
|
||||
do {
|
||||
i1 i1Var = (i1) this;
|
||||
if (i1Var.i[i].q()) {
|
||||
i = r(i, z2);
|
||||
} else {
|
||||
return i1Var.i[i].a(z2) + i1Var.h[i];
|
||||
}
|
||||
} while (i != -1);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.r1
|
||||
public final int b(Object obj) {
|
||||
int b;
|
||||
if (!(obj instanceof Pair)) {
|
||||
return -1;
|
||||
}
|
||||
Pair pair = (Pair) obj;
|
||||
Object obj2 = pair.first;
|
||||
Object obj3 = pair.second;
|
||||
i1 i1Var = (i1) this;
|
||||
Integer num = i1Var.k.get(obj2);
|
||||
int intValue = num == null ? -1 : num.intValue();
|
||||
if (intValue == -1 || (b = i1Var.i[intValue].b(obj3)) == -1) {
|
||||
return -1;
|
||||
}
|
||||
return i1Var.g[intValue] + b;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.r1
|
||||
public int c(boolean z2) {
|
||||
int i = this.b;
|
||||
if (i == 0) {
|
||||
return -1;
|
||||
}
|
||||
if (this.d) {
|
||||
z2 = false;
|
||||
}
|
||||
int g = z2 ? this.f772c.g() : i - 1;
|
||||
do {
|
||||
i1 i1Var = (i1) this;
|
||||
if (i1Var.i[g].q()) {
|
||||
g = s(g, z2);
|
||||
} else {
|
||||
return i1Var.i[g].c(z2) + i1Var.h[g];
|
||||
}
|
||||
} while (g != -1);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.r1
|
||||
public int e(int i, int i2, boolean z2) {
|
||||
int i3 = 0;
|
||||
if (this.d) {
|
||||
if (i2 == 1) {
|
||||
i2 = 2;
|
||||
}
|
||||
z2 = false;
|
||||
}
|
||||
i1 i1Var = (i1) this;
|
||||
int d = f0.d(i1Var.h, i + 1, false, false);
|
||||
int i4 = i1Var.h[d];
|
||||
r1 r1Var = i1Var.i[d];
|
||||
int i5 = i - i4;
|
||||
if (i2 != 2) {
|
||||
i3 = i2;
|
||||
}
|
||||
int e = r1Var.e(i5, i3, z2);
|
||||
if (e != -1) {
|
||||
return i4 + e;
|
||||
}
|
||||
int r = r(d, z2);
|
||||
while (r != -1 && i1Var.i[r].q()) {
|
||||
r = r(r, z2);
|
||||
}
|
||||
if (r != -1) {
|
||||
return i1Var.i[r].a(z2) + i1Var.h[r];
|
||||
} else if (i2 == 2) {
|
||||
return a(z2);
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.r1
|
||||
public final r1.b g(int i, r1.b bVar, boolean z2) {
|
||||
i1 i1Var = (i1) this;
|
||||
int d = f0.d(i1Var.g, i + 1, false, false);
|
||||
int i2 = i1Var.h[d];
|
||||
i1Var.i[d].g(i - i1Var.g[d], bVar, z2);
|
||||
bVar.f952c += i2;
|
||||
if (z2) {
|
||||
Object obj = i1Var.j[d];
|
||||
Object obj2 = bVar.b;
|
||||
Objects.requireNonNull(obj2);
|
||||
bVar.b = Pair.create(obj, obj2);
|
||||
}
|
||||
return bVar;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.r1
|
||||
public final r1.b h(Object obj, r1.b bVar) {
|
||||
Pair pair = (Pair) obj;
|
||||
Object obj2 = pair.first;
|
||||
Object obj3 = pair.second;
|
||||
i1 i1Var = (i1) this;
|
||||
Integer num = i1Var.k.get(obj2);
|
||||
int intValue = num == null ? -1 : num.intValue();
|
||||
int i = i1Var.h[intValue];
|
||||
i1Var.i[intValue].h(obj3, bVar);
|
||||
bVar.f952c += i;
|
||||
bVar.b = obj;
|
||||
return bVar;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.r1
|
||||
public int l(int i, int i2, boolean z2) {
|
||||
int i3 = 0;
|
||||
if (this.d) {
|
||||
if (i2 == 1) {
|
||||
i2 = 2;
|
||||
}
|
||||
z2 = false;
|
||||
}
|
||||
i1 i1Var = (i1) this;
|
||||
int d = f0.d(i1Var.h, i + 1, false, false);
|
||||
int i4 = i1Var.h[d];
|
||||
r1 r1Var = i1Var.i[d];
|
||||
int i5 = i - i4;
|
||||
if (i2 != 2) {
|
||||
i3 = i2;
|
||||
}
|
||||
int l = r1Var.l(i5, i3, z2);
|
||||
if (l != -1) {
|
||||
return i4 + l;
|
||||
}
|
||||
int s2 = s(d, z2);
|
||||
while (s2 != -1 && i1Var.i[s2].q()) {
|
||||
s2 = s(s2, z2);
|
||||
}
|
||||
if (s2 != -1) {
|
||||
return i1Var.i[s2].c(z2) + i1Var.h[s2];
|
||||
} else if (i2 == 2) {
|
||||
return c(z2);
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.r1
|
||||
public final Object m(int i) {
|
||||
i1 i1Var = (i1) this;
|
||||
int d = f0.d(i1Var.g, i + 1, false, false);
|
||||
return Pair.create(i1Var.j[d], i1Var.i[d].m(i - i1Var.g[d]));
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.r1
|
||||
public final r1.c o(int i, r1.c cVar, long j) {
|
||||
i1 i1Var = (i1) this;
|
||||
int d = f0.d(i1Var.h, i + 1, false, false);
|
||||
int i2 = i1Var.h[d];
|
||||
int i3 = i1Var.g[d];
|
||||
i1Var.i[d].o(i - i2, cVar, j);
|
||||
Object obj = i1Var.j[d];
|
||||
if (!r1.c.a.equals(cVar.f953c)) {
|
||||
obj = Pair.create(obj, cVar.f953c);
|
||||
}
|
||||
cVar.f953c = obj;
|
||||
cVar.o += i3;
|
||||
cVar.p += i3;
|
||||
return cVar;
|
||||
}
|
||||
|
||||
public final int r(int i, boolean z2) {
|
||||
if (z2) {
|
||||
return this.f772c.e(i);
|
||||
}
|
||||
if (i < this.b - 1) {
|
||||
return i + 1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public final int s(int i, boolean z2) {
|
||||
if (z2) {
|
||||
return this.f772c.d(i);
|
||||
}
|
||||
if (i > 0) {
|
||||
return i - 1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
|
@ -1,109 +0,0 @@
|
|||
package c.i.a.c;
|
||||
|
||||
import androidx.annotation.CheckResult;
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.d2.y;
|
||||
import c.i.a.c.f2.m;
|
||||
import c.i.b.b.a;
|
||||
import c.i.b.b.q0;
|
||||
import c.i.b.b.u;
|
||||
import com.google.android.exoplayer2.ExoPlaybackException;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
import com.google.android.exoplayer2.source.TrackGroupArray;
|
||||
import java.util.List;
|
||||
/* compiled from: PlaybackInfo */
|
||||
public final class c1 {
|
||||
public static final y.a a = new y.a(new Object());
|
||||
public final r1 b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final y.a f773c;
|
||||
public final long d;
|
||||
public final int e;
|
||||
@Nullable
|
||||
public final ExoPlaybackException f;
|
||||
public final boolean g;
|
||||
public final TrackGroupArray h;
|
||||
public final m i;
|
||||
public final List<Metadata> j;
|
||||
public final y.a k;
|
||||
public final boolean l;
|
||||
public final int m;
|
||||
public final d1 n;
|
||||
public final boolean o;
|
||||
public final boolean p;
|
||||
public volatile long q;
|
||||
public volatile long r;
|
||||
|
||||
/* renamed from: s reason: collision with root package name */
|
||||
public volatile long f774s;
|
||||
|
||||
public c1(r1 r1Var, y.a aVar, long j, int i, @Nullable ExoPlaybackException exoPlaybackException, boolean z2, TrackGroupArray trackGroupArray, m mVar, List<Metadata> list, y.a aVar2, boolean z3, int i2, d1 d1Var, long j2, long j3, long j4, boolean z4, boolean z5) {
|
||||
this.b = r1Var;
|
||||
this.f773c = aVar;
|
||||
this.d = j;
|
||||
this.e = i;
|
||||
this.f = exoPlaybackException;
|
||||
this.g = z2;
|
||||
this.h = trackGroupArray;
|
||||
this.i = mVar;
|
||||
this.j = list;
|
||||
this.k = aVar2;
|
||||
this.l = z3;
|
||||
this.m = i2;
|
||||
this.n = d1Var;
|
||||
this.q = j2;
|
||||
this.r = j3;
|
||||
this.f774s = j4;
|
||||
this.o = z4;
|
||||
this.p = z5;
|
||||
}
|
||||
|
||||
public static c1 i(m mVar) {
|
||||
r1 r1Var = r1.a;
|
||||
y.a aVar = a;
|
||||
TrackGroupArray trackGroupArray = TrackGroupArray.i;
|
||||
a<Object> aVar2 = u.j;
|
||||
return new c1(r1Var, aVar, -9223372036854775807L, 1, null, false, trackGroupArray, mVar, q0.k, aVar, false, 0, d1.a, 0, 0, 0, false, false);
|
||||
}
|
||||
|
||||
@CheckResult
|
||||
public c1 a(y.a aVar) {
|
||||
return new c1(this.b, this.f773c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, aVar, this.l, this.m, this.n, this.q, this.r, this.f774s, this.o, this.p);
|
||||
}
|
||||
|
||||
@CheckResult
|
||||
public c1 b(y.a aVar, long j, long j2, long j3, TrackGroupArray trackGroupArray, m mVar, List<Metadata> list) {
|
||||
return new c1(this.b, aVar, j2, this.e, this.f, this.g, trackGroupArray, mVar, list, this.k, this.l, this.m, this.n, this.q, j3, j, this.o, this.p);
|
||||
}
|
||||
|
||||
@CheckResult
|
||||
public c1 c(boolean z2) {
|
||||
return new c1(this.b, this.f773c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.q, this.r, this.f774s, z2, this.p);
|
||||
}
|
||||
|
||||
@CheckResult
|
||||
public c1 d(boolean z2, int i) {
|
||||
return new c1(this.b, this.f773c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, z2, i, this.n, this.q, this.r, this.f774s, this.o, this.p);
|
||||
}
|
||||
|
||||
@CheckResult
|
||||
public c1 e(@Nullable ExoPlaybackException exoPlaybackException) {
|
||||
return new c1(this.b, this.f773c, this.d, this.e, exoPlaybackException, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.q, this.r, this.f774s, this.o, this.p);
|
||||
}
|
||||
|
||||
@CheckResult
|
||||
public c1 f(d1 d1Var) {
|
||||
return new c1(this.b, this.f773c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, d1Var, this.q, this.r, this.f774s, this.o, this.p);
|
||||
}
|
||||
|
||||
@CheckResult
|
||||
public c1 g(int i) {
|
||||
return new c1(this.b, this.f773c, this.d, i, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.q, this.r, this.f774s, this.o, this.p);
|
||||
}
|
||||
|
||||
@CheckResult
|
||||
public c1 h(r1 r1Var) {
|
||||
return new c1(r1Var, this.f773c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.q, this.r, this.f774s, this.o, this.p);
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
package c.i.a.c.c2;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
/* compiled from: Metadata */
|
||||
public final /* synthetic */ class a {
|
||||
@Nullable
|
||||
public static byte[] a(Metadata.Entry entry) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static Format b(Metadata.Entry entry) {
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
package c.i.a.c.c2;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
/* compiled from: MetadataDecoder */
|
||||
public interface b {
|
||||
@Nullable
|
||||
Metadata a(d dVar);
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
package c.i.a.c.c2;
|
||||
|
||||
import c.i.a.c.c2.k.b;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
/* compiled from: MetadataDecoderFactory */
|
||||
public interface c {
|
||||
public static final c a = new a();
|
||||
|
||||
/* compiled from: MetadataDecoderFactory */
|
||||
public class a implements c {
|
||||
@Override // c.i.a.c.c2.c
|
||||
public boolean a(Format format) {
|
||||
String str = format.t;
|
||||
return "application/id3".equals(str) || "application/x-emsg".equals(str) || "application/x-scte35".equals(str) || "application/x-icy".equals(str) || "application/vnd.dvb.ait".equals(str);
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.c2.c
|
||||
public b b(Format format) {
|
||||
String str = format.t;
|
||||
if (str != null) {
|
||||
str.hashCode();
|
||||
char c2 = 65535;
|
||||
switch (str.hashCode()) {
|
||||
case -1354451219:
|
||||
if (str.equals("application/vnd.dvb.ait")) {
|
||||
c2 = 0;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case -1348231605:
|
||||
if (str.equals("application/x-icy")) {
|
||||
c2 = 1;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case -1248341703:
|
||||
if (str.equals("application/id3")) {
|
||||
c2 = 2;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 1154383568:
|
||||
if (str.equals("application/x-emsg")) {
|
||||
c2 = 3;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 1652648887:
|
||||
if (str.equals("application/x-scte35")) {
|
||||
c2 = 4;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
switch (c2) {
|
||||
case 0:
|
||||
return new c.i.a.c.c2.h.a();
|
||||
case 1:
|
||||
return new c.i.a.c.c2.j.a();
|
||||
case 2:
|
||||
return new b();
|
||||
case 3:
|
||||
return new c.i.a.c.c2.i.a();
|
||||
case 4:
|
||||
return new c.i.a.c.c2.l.a();
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException(c.d.b.a.a.s("Attempted to create decoder for unsupported MIME type: ", str));
|
||||
}
|
||||
}
|
||||
|
||||
boolean a(Format format);
|
||||
|
||||
b b(Format format);
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package c.i.a.c.c2;
|
||||
|
||||
import com.google.android.exoplayer2.decoder.DecoderInputBuffer;
|
||||
/* compiled from: MetadataInputBuffer */
|
||||
public final class d extends DecoderInputBuffer {
|
||||
public long q;
|
||||
|
||||
public d() {
|
||||
super(1);
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
package c.i.a.c.c2;
|
||||
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
/* compiled from: MetadataOutput */
|
||||
public interface e {
|
||||
void l(Metadata metadata);
|
||||
}
|
|
@ -1,203 +0,0 @@
|
|||
package c.i.a.c.c2;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.os.Message;
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.g0;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.s0;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
/* compiled from: MetadataRenderer */
|
||||
public final class f extends g0 implements Handler.Callback {
|
||||
public int A;
|
||||
@Nullable
|
||||
public b B;
|
||||
public boolean C;
|
||||
public boolean D;
|
||||
public long E;
|
||||
public final c t;
|
||||
public final e u;
|
||||
@Nullable
|
||||
public final Handler v;
|
||||
public final d w;
|
||||
|
||||
/* renamed from: x reason: collision with root package name */
|
||||
public final Metadata[] f775x;
|
||||
|
||||
/* renamed from: y reason: collision with root package name */
|
||||
public final long[] f776y;
|
||||
|
||||
/* renamed from: z reason: collision with root package name */
|
||||
public int f777z;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public f(e eVar, @Nullable Looper looper) {
|
||||
super(5);
|
||||
Handler handler;
|
||||
c cVar = c.a;
|
||||
Objects.requireNonNull(eVar);
|
||||
this.u = eVar;
|
||||
if (looper == null) {
|
||||
handler = null;
|
||||
} else {
|
||||
int i = f0.a;
|
||||
handler = new Handler(looper, this);
|
||||
}
|
||||
this.v = handler;
|
||||
this.t = cVar;
|
||||
this.w = new d();
|
||||
this.f775x = new Metadata[5];
|
||||
this.f776y = new long[5];
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.g0
|
||||
public void B() {
|
||||
Arrays.fill(this.f775x, (Object) null);
|
||||
this.f777z = 0;
|
||||
this.A = 0;
|
||||
this.B = null;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.g0
|
||||
public void D(long j, boolean z2) {
|
||||
Arrays.fill(this.f775x, (Object) null);
|
||||
this.f777z = 0;
|
||||
this.A = 0;
|
||||
this.C = false;
|
||||
this.D = false;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.g0
|
||||
public void H(Format[] formatArr, long j, long j2) {
|
||||
this.B = this.t.b(formatArr[0]);
|
||||
}
|
||||
|
||||
public final void J(Metadata metadata, List<Metadata.Entry> list) {
|
||||
int i = 0;
|
||||
while (true) {
|
||||
Metadata.Entry[] entryArr = metadata.i;
|
||||
if (i < entryArr.length) {
|
||||
Format x2 = entryArr[i].x();
|
||||
if (x2 == null || !this.t.a(x2)) {
|
||||
list.add(metadata.i[i]);
|
||||
} else {
|
||||
b b = this.t.b(x2);
|
||||
byte[] n0 = metadata.i[i].n0();
|
||||
Objects.requireNonNull(n0);
|
||||
this.w.p();
|
||||
this.w.r(n0.length);
|
||||
ByteBuffer byteBuffer = this.w.k;
|
||||
int i2 = f0.a;
|
||||
byteBuffer.put(n0);
|
||||
this.w.s();
|
||||
Metadata a = b.a(this.w);
|
||||
if (a != null) {
|
||||
J(a, list);
|
||||
}
|
||||
}
|
||||
i++;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.l1
|
||||
public int a(Format format) {
|
||||
if (!this.t.a(format)) {
|
||||
return 0;
|
||||
}
|
||||
return (format.M == null ? 4 : 2) | 0 | 0;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.k1
|
||||
public boolean b() {
|
||||
return this.D;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.k1
|
||||
public boolean d() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.k1, c.i.a.c.l1
|
||||
public String getName() {
|
||||
return "MetadataRenderer";
|
||||
}
|
||||
|
||||
@Override // android.os.Handler.Callback
|
||||
public boolean handleMessage(Message message) {
|
||||
if (message.what == 0) {
|
||||
this.u.l((Metadata) message.obj);
|
||||
return true;
|
||||
}
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.k1
|
||||
public void q(long j, long j2) {
|
||||
if (!this.C && this.A < 5) {
|
||||
this.w.p();
|
||||
s0 A = A();
|
||||
int I = I(A, this.w, false);
|
||||
if (I == -4) {
|
||||
if (this.w.n()) {
|
||||
this.C = true;
|
||||
} else {
|
||||
d dVar = this.w;
|
||||
dVar.q = this.E;
|
||||
dVar.s();
|
||||
b bVar = this.B;
|
||||
int i = f0.a;
|
||||
Metadata a = bVar.a(this.w);
|
||||
if (a != null) {
|
||||
ArrayList arrayList = new ArrayList(a.i.length);
|
||||
J(a, arrayList);
|
||||
if (!arrayList.isEmpty()) {
|
||||
Metadata metadata = new Metadata(arrayList);
|
||||
int i2 = this.f777z;
|
||||
int i3 = this.A;
|
||||
int i4 = (i2 + i3) % 5;
|
||||
this.f775x[i4] = metadata;
|
||||
this.f776y[i4] = this.w.m;
|
||||
this.A = i3 + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (I == -5) {
|
||||
Format format = A.b;
|
||||
Objects.requireNonNull(format);
|
||||
this.E = format.f2213x;
|
||||
}
|
||||
}
|
||||
if (this.A > 0) {
|
||||
long[] jArr = this.f776y;
|
||||
int i5 = this.f777z;
|
||||
if (jArr[i5] <= j) {
|
||||
Metadata metadata2 = this.f775x[i5];
|
||||
int i6 = f0.a;
|
||||
Handler handler = this.v;
|
||||
if (handler != null) {
|
||||
handler.obtainMessage(0, metadata2).sendToTarget();
|
||||
} else {
|
||||
this.u.l(metadata2);
|
||||
}
|
||||
Metadata[] metadataArr = this.f775x;
|
||||
int i7 = this.f777z;
|
||||
metadataArr[i7] = null;
|
||||
this.f777z = (i7 + 1) % 5;
|
||||
this.A--;
|
||||
}
|
||||
}
|
||||
if (this.C && this.A == 0) {
|
||||
this.D = true;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
package c.i.a.c.c2;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Objects;
|
||||
/* compiled from: SimpleMetadataDecoder */
|
||||
public abstract class g implements b {
|
||||
@Override // c.i.a.c.c2.b
|
||||
@Nullable
|
||||
public final Metadata a(d dVar) {
|
||||
ByteBuffer byteBuffer = dVar.k;
|
||||
Objects.requireNonNull(byteBuffer);
|
||||
AnimatableValueParser.k(byteBuffer.position() == 0 && byteBuffer.hasArray() && byteBuffer.arrayOffset() == 0);
|
||||
if (dVar.m()) {
|
||||
return null;
|
||||
}
|
||||
return b(dVar, byteBuffer);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public abstract Metadata b(d dVar, ByteBuffer byteBuffer);
|
||||
}
|
|
@ -1,72 +0,0 @@
|
|||
package c.i.a.c.c2.h;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.c2.d;
|
||||
import c.i.a.c.c2.g;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.b.a.c;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
import com.google.android.exoplayer2.metadata.dvbsi.AppInfoTable;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.ArrayList;
|
||||
/* compiled from: AppInfoTableDecoder */
|
||||
public final class a extends g {
|
||||
@Override // c.i.a.c.c2.g
|
||||
@Nullable
|
||||
public Metadata b(d dVar, ByteBuffer byteBuffer) {
|
||||
if (byteBuffer.get() == 116) {
|
||||
v vVar = new v(byteBuffer.array(), byteBuffer.limit());
|
||||
vVar.m(12);
|
||||
int d = (vVar.d() + vVar.g(12)) - 4;
|
||||
vVar.m(44);
|
||||
vVar.n(vVar.g(12));
|
||||
vVar.m(16);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
while (vVar.d() < d) {
|
||||
vVar.m(48);
|
||||
int g = vVar.g(8);
|
||||
vVar.m(4);
|
||||
int d2 = vVar.d() + vVar.g(12);
|
||||
String str = null;
|
||||
String str2 = null;
|
||||
while (vVar.d() < d2) {
|
||||
int g2 = vVar.g(8);
|
||||
int g3 = vVar.g(8);
|
||||
int d3 = vVar.d() + g3;
|
||||
if (g2 == 2) {
|
||||
int g4 = vVar.g(16);
|
||||
vVar.m(8);
|
||||
if (g4 != 3) {
|
||||
}
|
||||
while (vVar.d() < d3) {
|
||||
int g5 = vVar.g(8);
|
||||
Charset charset = c.a;
|
||||
byte[] bArr = new byte[g5];
|
||||
vVar.i(bArr, 0, g5);
|
||||
str = new String(bArr, charset);
|
||||
int g6 = vVar.g(8);
|
||||
for (int i = 0; i < g6; i++) {
|
||||
vVar.n(vVar.g(8));
|
||||
}
|
||||
}
|
||||
} else if (g2 == 21) {
|
||||
Charset charset2 = c.a;
|
||||
byte[] bArr2 = new byte[g3];
|
||||
vVar.i(bArr2, 0, g3);
|
||||
str2 = new String(bArr2, charset2);
|
||||
}
|
||||
vVar.k(d3 * 8);
|
||||
}
|
||||
vVar.k(d2 * 8);
|
||||
if (!(str == null || str2 == null)) {
|
||||
arrayList.add(new AppInfoTable(g, c.d.b.a.a.s(str, str2)));
|
||||
}
|
||||
}
|
||||
if (!arrayList.isEmpty()) {
|
||||
return new Metadata(arrayList);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
package c.i.a.c.c2.i;
|
||||
|
||||
import c.i.a.c.c2.d;
|
||||
import c.i.a.c.c2.g;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
import com.google.android.exoplayer2.metadata.emsg.EventMessage;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Arrays;
|
||||
import java.util.Objects;
|
||||
/* compiled from: EventMessageDecoder */
|
||||
public final class a extends g {
|
||||
@Override // c.i.a.c.c2.g
|
||||
public Metadata b(d dVar, ByteBuffer byteBuffer) {
|
||||
w wVar = new w(byteBuffer.array(), byteBuffer.limit());
|
||||
String n = wVar.n();
|
||||
Objects.requireNonNull(n);
|
||||
String n2 = wVar.n();
|
||||
Objects.requireNonNull(n2);
|
||||
return new Metadata(new EventMessage(n, n2, wVar.t(), wVar.t(), Arrays.copyOfRange(wVar.a, wVar.b, wVar.f913c)));
|
||||
}
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
package c.i.a.c.c2.i;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
/* compiled from: EventMessageEncoder */
|
||||
public final class b {
|
||||
public final ByteArrayOutputStream a;
|
||||
public final DataOutputStream b;
|
||||
|
||||
public b() {
|
||||
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(512);
|
||||
this.a = byteArrayOutputStream;
|
||||
this.b = new DataOutputStream(byteArrayOutputStream);
|
||||
}
|
||||
|
||||
public static void a(DataOutputStream dataOutputStream, long j) throws IOException {
|
||||
dataOutputStream.writeByte(((int) (j >>> 24)) & 255);
|
||||
dataOutputStream.writeByte(((int) (j >>> 16)) & 255);
|
||||
dataOutputStream.writeByte(((int) (j >>> 8)) & 255);
|
||||
dataOutputStream.writeByte(((int) j) & 255);
|
||||
}
|
||||
}
|
|
@ -1,67 +0,0 @@
|
|||
package c.i.a.c.c2.j;
|
||||
|
||||
import c.i.a.c.c2.d;
|
||||
import c.i.a.c.c2.g;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.b.a.c;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
import com.google.android.exoplayer2.metadata.icy.IcyInfo;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.CharacterCodingException;
|
||||
import java.nio.charset.CharsetDecoder;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
/* compiled from: IcyDecoder */
|
||||
public final class a extends g {
|
||||
public static final Pattern a = Pattern.compile("(.+?)='(.*?)';", 32);
|
||||
public final CharsetDecoder b = c.f1266c.newDecoder();
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final CharsetDecoder f778c = c.b.newDecoder();
|
||||
|
||||
/* JADX INFO: finally extract failed */
|
||||
@Override // c.i.a.c.c2.g
|
||||
public Metadata b(d dVar, ByteBuffer byteBuffer) {
|
||||
String str;
|
||||
String str2 = null;
|
||||
try {
|
||||
str = this.b.decode(byteBuffer).toString();
|
||||
} catch (CharacterCodingException unused) {
|
||||
try {
|
||||
str = this.f778c.decode(byteBuffer).toString();
|
||||
this.f778c.reset();
|
||||
byteBuffer.rewind();
|
||||
} catch (CharacterCodingException unused2) {
|
||||
this.f778c.reset();
|
||||
byteBuffer.rewind();
|
||||
str = null;
|
||||
} catch (Throwable th) {
|
||||
this.f778c.reset();
|
||||
byteBuffer.rewind();
|
||||
throw th;
|
||||
}
|
||||
} finally {
|
||||
this.b.reset();
|
||||
byteBuffer.rewind();
|
||||
}
|
||||
byte[] bArr = new byte[byteBuffer.limit()];
|
||||
byteBuffer.get(bArr);
|
||||
if (str == null) {
|
||||
return new Metadata(new IcyInfo(bArr, null, null));
|
||||
}
|
||||
Matcher matcher = a.matcher(str);
|
||||
String str3 = null;
|
||||
for (int i = 0; matcher.find(i); i = matcher.end()) {
|
||||
String K = f0.K(matcher.group(1));
|
||||
String group = matcher.group(2);
|
||||
if (K != null) {
|
||||
if (K.equals("streamurl")) {
|
||||
str3 = group;
|
||||
} else if (K.equals("streamtitle")) {
|
||||
str2 = group;
|
||||
}
|
||||
}
|
||||
}
|
||||
return new Metadata(new IcyInfo(bArr, str2, str3));
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
package c.i.a.c.c2.k;
|
||||
|
||||
import c.i.a.c.c2.k.b;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class a implements b.a {
|
||||
public static final /* synthetic */ a a = new a();
|
||||
|
||||
@Override // c.i.a.c.c2.k.b.a
|
||||
public final boolean a(int i, int i2, int i3, int i4, int i5) {
|
||||
int i6 = b.a;
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -1,619 +0,0 @@
|
|||
package c.i.a.c.c2.k;
|
||||
|
||||
import android.util.Log;
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.c2.d;
|
||||
import c.i.a.c.c2.g;
|
||||
import c.i.a.c.i2.f0;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
import com.google.android.exoplayer2.metadata.id3.ApicFrame;
|
||||
import com.google.android.exoplayer2.metadata.id3.BinaryFrame;
|
||||
import com.google.android.exoplayer2.metadata.id3.ChapterFrame;
|
||||
import com.google.android.exoplayer2.metadata.id3.ChapterTocFrame;
|
||||
import com.google.android.exoplayer2.metadata.id3.CommentFrame;
|
||||
import com.google.android.exoplayer2.metadata.id3.GeobFrame;
|
||||
import com.google.android.exoplayer2.metadata.id3.Id3Frame;
|
||||
import com.google.android.exoplayer2.metadata.id3.MlltFrame;
|
||||
import com.google.android.exoplayer2.metadata.id3.PrivFrame;
|
||||
import com.google.android.exoplayer2.metadata.id3.TextInformationFrame;
|
||||
import com.google.android.exoplayer2.metadata.id3.UrlLinkFrame;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Locale;
|
||||
/* compiled from: Id3Decoder */
|
||||
public final class b extends g {
|
||||
public static final /* synthetic */ int a = 0;
|
||||
@Nullable
|
||||
public final a b;
|
||||
|
||||
/* compiled from: Id3Decoder */
|
||||
public interface a {
|
||||
boolean a(int i, int i2, int i3, int i4, int i5);
|
||||
}
|
||||
|
||||
/* compiled from: Id3Decoder */
|
||||
/* renamed from: c.i.a.c.c2.k.b$b reason: collision with other inner class name */
|
||||
public static final class C0085b {
|
||||
public final int a;
|
||||
public final boolean b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final int f779c;
|
||||
|
||||
public C0085b(int i, boolean z2, int i2) {
|
||||
this.a = i;
|
||||
this.b = z2;
|
||||
this.f779c = i2;
|
||||
}
|
||||
}
|
||||
|
||||
public b() {
|
||||
this.b = null;
|
||||
}
|
||||
|
||||
public b(@Nullable a aVar) {
|
||||
this.b = aVar;
|
||||
}
|
||||
|
||||
public static byte[] c(byte[] bArr, int i, int i2) {
|
||||
return i2 <= i ? f0.f : Arrays.copyOfRange(bArr, i, i2);
|
||||
}
|
||||
|
||||
public static ApicFrame e(w wVar, int i, int i2) throws UnsupportedEncodingException {
|
||||
String str;
|
||||
int i3;
|
||||
int s2 = wVar.s();
|
||||
String t = t(s2);
|
||||
int i4 = i - 1;
|
||||
byte[] bArr = new byte[i4];
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, 0, i4);
|
||||
wVar.b += i4;
|
||||
if (i2 == 2) {
|
||||
StringBuilder K = c.d.b.a.a.K("image/");
|
||||
K.append(f0.K(new String(bArr, 0, 3, "ISO-8859-1")));
|
||||
str = K.toString();
|
||||
if ("image/jpg".equals(str)) {
|
||||
str = "image/jpeg";
|
||||
}
|
||||
i3 = 2;
|
||||
} else {
|
||||
int w = w(bArr, 0);
|
||||
String K2 = f0.K(new String(bArr, 0, w, "ISO-8859-1"));
|
||||
if (K2.indexOf(47) == -1) {
|
||||
i3 = w;
|
||||
str = c.d.b.a.a.s("image/", K2);
|
||||
} else {
|
||||
i3 = w;
|
||||
str = K2;
|
||||
}
|
||||
}
|
||||
int i5 = i3 + 2;
|
||||
int v = v(bArr, i5, s2);
|
||||
return new ApicFrame(str, new String(bArr, i5, v - i5, t), bArr[i3 + 1] & 255, c(bArr, s(s2) + v, i4));
|
||||
}
|
||||
|
||||
public static BinaryFrame f(w wVar, int i, String str) {
|
||||
byte[] bArr = new byte[i];
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, 0, i);
|
||||
wVar.b += i;
|
||||
return new BinaryFrame(str, bArr);
|
||||
}
|
||||
|
||||
public static ChapterFrame g(w wVar, int i, int i2, boolean z2, int i3, @Nullable a aVar) throws UnsupportedEncodingException {
|
||||
int i4 = wVar.b;
|
||||
int w = w(wVar.a, i4);
|
||||
String str = new String(wVar.a, i4, w - i4, "ISO-8859-1");
|
||||
wVar.D(w + 1);
|
||||
int f = wVar.f();
|
||||
int f2 = wVar.f();
|
||||
long t = wVar.t();
|
||||
long j = t == 4294967295L ? -1 : t;
|
||||
long t2 = wVar.t();
|
||||
long j2 = t2 == 4294967295L ? -1 : t2;
|
||||
ArrayList arrayList = new ArrayList();
|
||||
int i5 = i4 + i;
|
||||
while (wVar.b < i5) {
|
||||
Id3Frame j3 = j(i2, wVar, z2, i3, aVar);
|
||||
if (j3 != null) {
|
||||
arrayList.add(j3);
|
||||
}
|
||||
}
|
||||
return new ChapterFrame(str, f, f2, j, j2, (Id3Frame[]) arrayList.toArray(new Id3Frame[0]));
|
||||
}
|
||||
|
||||
public static ChapterTocFrame h(w wVar, int i, int i2, boolean z2, int i3, @Nullable a aVar) throws UnsupportedEncodingException {
|
||||
int i4 = wVar.b;
|
||||
int w = w(wVar.a, i4);
|
||||
String str = new String(wVar.a, i4, w - i4, "ISO-8859-1");
|
||||
wVar.D(w + 1);
|
||||
int s2 = wVar.s();
|
||||
boolean z3 = (s2 & 2) != 0;
|
||||
boolean z4 = (s2 & 1) != 0;
|
||||
int s3 = wVar.s();
|
||||
String[] strArr = new String[s3];
|
||||
for (int i5 = 0; i5 < s3; i5++) {
|
||||
int i6 = wVar.b;
|
||||
int w2 = w(wVar.a, i6);
|
||||
strArr[i5] = new String(wVar.a, i6, w2 - i6, "ISO-8859-1");
|
||||
wVar.D(w2 + 1);
|
||||
}
|
||||
ArrayList arrayList = new ArrayList();
|
||||
int i7 = i4 + i;
|
||||
while (wVar.b < i7) {
|
||||
Id3Frame j = j(i2, wVar, z2, i3, aVar);
|
||||
if (j != null) {
|
||||
arrayList.add(j);
|
||||
}
|
||||
}
|
||||
return new ChapterTocFrame(str, z3, z4, strArr, (Id3Frame[]) arrayList.toArray(new Id3Frame[0]));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static CommentFrame i(w wVar, int i) throws UnsupportedEncodingException {
|
||||
if (i < 4) {
|
||||
return null;
|
||||
}
|
||||
int s2 = wVar.s();
|
||||
String t = t(s2);
|
||||
byte[] bArr = new byte[3];
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, 0, 3);
|
||||
wVar.b += 3;
|
||||
String str = new String(bArr, 0, 3);
|
||||
int i2 = i - 4;
|
||||
byte[] bArr2 = new byte[i2];
|
||||
System.arraycopy(wVar.a, wVar.b, bArr2, 0, i2);
|
||||
wVar.b += i2;
|
||||
int v = v(bArr2, 0, s2);
|
||||
String str2 = new String(bArr2, 0, v, t);
|
||||
int s3 = s(s2) + v;
|
||||
return new CommentFrame(str, str2, n(bArr2, s3, v(bArr2, s3, s2), t));
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:129:0x0188, code lost:
|
||||
if (r13 == 67) goto L_0x018a;
|
||||
*/
|
||||
@Nullable
|
||||
public static Id3Frame j(int i, w wVar, boolean z2, int i2, @Nullable a aVar) {
|
||||
int v;
|
||||
int i3;
|
||||
int i4;
|
||||
String str;
|
||||
boolean z3;
|
||||
boolean z4;
|
||||
boolean z5;
|
||||
boolean z6;
|
||||
boolean z7;
|
||||
Id3Frame id3Frame;
|
||||
int s2 = wVar.s();
|
||||
int s3 = wVar.s();
|
||||
int s4 = wVar.s();
|
||||
int s5 = i >= 3 ? wVar.s() : 0;
|
||||
if (i == 4) {
|
||||
v = wVar.v();
|
||||
if (!z2) {
|
||||
v = (((v >> 24) & 255) << 21) | (v & 255) | (((v >> 8) & 255) << 7) | (((v >> 16) & 255) << 14);
|
||||
}
|
||||
} else {
|
||||
v = i == 3 ? wVar.v() : wVar.u();
|
||||
}
|
||||
int i5 = v;
|
||||
int x2 = i >= 3 ? wVar.x() : 0;
|
||||
if (s2 == 0 && s3 == 0 && s4 == 0 && s5 == 0 && i5 == 0 && x2 == 0) {
|
||||
wVar.D(wVar.f913c);
|
||||
return null;
|
||||
}
|
||||
int i6 = wVar.b + i5;
|
||||
if (i6 > wVar.f913c) {
|
||||
Log.w("Id3Decoder", "Frame size exceeds remaining tag data");
|
||||
wVar.D(wVar.f913c);
|
||||
return null;
|
||||
}
|
||||
if (aVar != null) {
|
||||
str = "Id3Decoder";
|
||||
i4 = i6;
|
||||
i3 = x2;
|
||||
if (!aVar.a(i, s2, s3, s4, s5)) {
|
||||
wVar.D(i4);
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
str = "Id3Decoder";
|
||||
i4 = i6;
|
||||
i3 = x2;
|
||||
}
|
||||
if (i == 3) {
|
||||
z6 = (i3 & 128) != 0;
|
||||
z5 = (i3 & 64) != 0;
|
||||
z7 = (i3 & 32) != 0;
|
||||
z3 = z6;
|
||||
z4 = false;
|
||||
} else if (i == 4) {
|
||||
boolean z8 = (i3 & 64) != 0;
|
||||
boolean z9 = (i3 & 8) != 0;
|
||||
boolean z10 = (i3 & 4) != 0;
|
||||
z4 = (i3 & 2) != 0;
|
||||
z7 = z8;
|
||||
z6 = (i3 & 1) != 0;
|
||||
z3 = z9;
|
||||
z5 = z10;
|
||||
} else {
|
||||
z7 = false;
|
||||
z6 = false;
|
||||
z5 = false;
|
||||
z4 = false;
|
||||
z3 = false;
|
||||
}
|
||||
if (z3 || z5) {
|
||||
Log.w(str, "Skipping unsupported compressed or encrypted frame");
|
||||
wVar.D(i4);
|
||||
return null;
|
||||
}
|
||||
if (z7) {
|
||||
i5--;
|
||||
wVar.E(1);
|
||||
}
|
||||
if (z6) {
|
||||
i5 -= 4;
|
||||
wVar.E(4);
|
||||
}
|
||||
if (z4) {
|
||||
i5 = x(wVar, i5);
|
||||
}
|
||||
if (s2 == 84 && s3 == 88 && s4 == 88 && (i == 2 || s5 == 88)) {
|
||||
try {
|
||||
id3Frame = p(wVar, i5);
|
||||
} catch (UnsupportedEncodingException unused) {
|
||||
Log.w(str, "Unsupported character encoding");
|
||||
wVar.D(i4);
|
||||
return null;
|
||||
} catch (Throwable th) {
|
||||
wVar.D(i4);
|
||||
throw th;
|
||||
}
|
||||
} else if (s2 == 84) {
|
||||
id3Frame = o(wVar, i5, u(i, s2, s3, s4, s5));
|
||||
} else if (s2 == 87 && s3 == 88 && s4 == 88 && (i == 2 || s5 == 88)) {
|
||||
id3Frame = r(wVar, i5);
|
||||
} else if (s2 == 87) {
|
||||
id3Frame = q(wVar, i5, u(i, s2, s3, s4, s5));
|
||||
} else if (s2 == 80 && s3 == 82 && s4 == 73 && s5 == 86) {
|
||||
id3Frame = m(wVar, i5);
|
||||
} else if (s2 == 71 && s3 == 69 && s4 == 79 && (s5 == 66 || i == 2)) {
|
||||
id3Frame = k(wVar, i5);
|
||||
} else {
|
||||
if (i == 2) {
|
||||
if (s2 == 80 && s3 == 73 && s4 == 67) {
|
||||
}
|
||||
id3Frame = (s2 != 67 && s3 == 79 && s4 == 77 && (s5 == 77 || i == 2)) ? i(wVar, i5) : (s2 != 67 && s3 == 72 && s4 == 65 && s5 == 80) ? g(wVar, i5, i, z2, i2, aVar) : (s2 != 67 && s3 == 84 && s4 == 79 && s5 == 67) ? h(wVar, i5, i, z2, i2, aVar) : (s2 != 77 && s3 == 76 && s4 == 76 && s5 == 84) ? l(wVar, i5) : f(wVar, i5, u(i, s2, s3, s4, s5));
|
||||
} else {
|
||||
if (s2 == 65) {
|
||||
if (s3 == 80) {
|
||||
if (s4 == 73) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (s2 != 67) {
|
||||
}
|
||||
}
|
||||
id3Frame = e(wVar, i5, i);
|
||||
}
|
||||
if (id3Frame == null) {
|
||||
Log.w(str, "Failed to decode frame: id=" + u(i, s2, s3, s4, s5) + ", frameSize=" + i5);
|
||||
}
|
||||
wVar.D(i4);
|
||||
return id3Frame;
|
||||
}
|
||||
|
||||
public static GeobFrame k(w wVar, int i) throws UnsupportedEncodingException {
|
||||
int s2 = wVar.s();
|
||||
String t = t(s2);
|
||||
int i2 = i - 1;
|
||||
byte[] bArr = new byte[i2];
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, 0, i2);
|
||||
wVar.b += i2;
|
||||
int w = w(bArr, 0);
|
||||
String str = new String(bArr, 0, w, "ISO-8859-1");
|
||||
int i3 = w + 1;
|
||||
int v = v(bArr, i3, s2);
|
||||
String n = n(bArr, i3, v, t);
|
||||
int s3 = s(s2) + v;
|
||||
int v2 = v(bArr, s3, s2);
|
||||
return new GeobFrame(str, n, n(bArr, s3, v2, t), c(bArr, s(s2) + v2, i2));
|
||||
}
|
||||
|
||||
public static MlltFrame l(w wVar, int i) {
|
||||
int x2 = wVar.x();
|
||||
int u = wVar.u();
|
||||
int u2 = wVar.u();
|
||||
int s2 = wVar.s();
|
||||
int s3 = wVar.s();
|
||||
v vVar = new v();
|
||||
vVar.j(wVar.a, wVar.f913c);
|
||||
vVar.k(wVar.b * 8);
|
||||
int i2 = ((i - 10) * 8) / (s2 + s3);
|
||||
int[] iArr = new int[i2];
|
||||
int[] iArr2 = new int[i2];
|
||||
for (int i3 = 0; i3 < i2; i3++) {
|
||||
int g = vVar.g(s2);
|
||||
int g2 = vVar.g(s3);
|
||||
iArr[i3] = g;
|
||||
iArr2[i3] = g2;
|
||||
}
|
||||
return new MlltFrame(x2, u, u2, iArr, iArr2);
|
||||
}
|
||||
|
||||
public static PrivFrame m(w wVar, int i) throws UnsupportedEncodingException {
|
||||
byte[] bArr = new byte[i];
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, 0, i);
|
||||
wVar.b += i;
|
||||
int w = w(bArr, 0);
|
||||
return new PrivFrame(new String(bArr, 0, w, "ISO-8859-1"), c(bArr, w + 1, i));
|
||||
}
|
||||
|
||||
public static String n(byte[] bArr, int i, int i2, String str) throws UnsupportedEncodingException {
|
||||
return (i2 <= i || i2 > bArr.length) ? "" : new String(bArr, i, i2 - i, str);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static TextInformationFrame o(w wVar, int i, String str) throws UnsupportedEncodingException {
|
||||
if (i < 1) {
|
||||
return null;
|
||||
}
|
||||
int s2 = wVar.s();
|
||||
String t = t(s2);
|
||||
int i2 = i - 1;
|
||||
byte[] bArr = new byte[i2];
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, 0, i2);
|
||||
wVar.b += i2;
|
||||
return new TextInformationFrame(str, null, new String(bArr, 0, v(bArr, 0, s2), t));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static TextInformationFrame p(w wVar, int i) throws UnsupportedEncodingException {
|
||||
if (i < 1) {
|
||||
return null;
|
||||
}
|
||||
int s2 = wVar.s();
|
||||
String t = t(s2);
|
||||
int i2 = i - 1;
|
||||
byte[] bArr = new byte[i2];
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, 0, i2);
|
||||
wVar.b += i2;
|
||||
int v = v(bArr, 0, s2);
|
||||
String str = new String(bArr, 0, v, t);
|
||||
int s3 = s(s2) + v;
|
||||
return new TextInformationFrame("TXXX", str, n(bArr, s3, v(bArr, s3, s2), t));
|
||||
}
|
||||
|
||||
public static UrlLinkFrame q(w wVar, int i, String str) throws UnsupportedEncodingException {
|
||||
byte[] bArr = new byte[i];
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, 0, i);
|
||||
wVar.b += i;
|
||||
return new UrlLinkFrame(str, null, new String(bArr, 0, w(bArr, 0), "ISO-8859-1"));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static UrlLinkFrame r(w wVar, int i) throws UnsupportedEncodingException {
|
||||
if (i < 1) {
|
||||
return null;
|
||||
}
|
||||
int s2 = wVar.s();
|
||||
String t = t(s2);
|
||||
int i2 = i - 1;
|
||||
byte[] bArr = new byte[i2];
|
||||
System.arraycopy(wVar.a, wVar.b, bArr, 0, i2);
|
||||
wVar.b += i2;
|
||||
int v = v(bArr, 0, s2);
|
||||
String str = new String(bArr, 0, v, t);
|
||||
int s3 = s(s2) + v;
|
||||
return new UrlLinkFrame("WXXX", str, n(bArr, s3, w(bArr, s3), "ISO-8859-1"));
|
||||
}
|
||||
|
||||
public static int s(int i) {
|
||||
return (i == 0 || i == 3) ? 1 : 2;
|
||||
}
|
||||
|
||||
public static String t(int i) {
|
||||
return i != 1 ? i != 2 ? i != 3 ? "ISO-8859-1" : "UTF-8" : "UTF-16BE" : "UTF-16";
|
||||
}
|
||||
|
||||
public static String u(int i, int i2, int i3, int i4, int i5) {
|
||||
return i == 2 ? String.format(Locale.US, "%c%c%c", Integer.valueOf(i2), Integer.valueOf(i3), Integer.valueOf(i4)) : String.format(Locale.US, "%c%c%c%c", Integer.valueOf(i2), Integer.valueOf(i3), Integer.valueOf(i4), Integer.valueOf(i5));
|
||||
}
|
||||
|
||||
public static int v(byte[] bArr, int i, int i2) {
|
||||
int w = w(bArr, i);
|
||||
if (i2 == 0 || i2 == 3) {
|
||||
return w;
|
||||
}
|
||||
while (w < bArr.length - 1) {
|
||||
if (w % 2 == 0 && bArr[w + 1] == 0) {
|
||||
return w;
|
||||
}
|
||||
w = w(bArr, w + 1);
|
||||
}
|
||||
return bArr.length;
|
||||
}
|
||||
|
||||
public static int w(byte[] bArr, int i) {
|
||||
while (i < bArr.length) {
|
||||
if (bArr[i] == 0) {
|
||||
return i;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return bArr.length;
|
||||
}
|
||||
|
||||
public static int x(w wVar, int i) {
|
||||
byte[] bArr = wVar.a;
|
||||
int i2 = wVar.b;
|
||||
int i3 = i2;
|
||||
while (true) {
|
||||
int i4 = i3 + 1;
|
||||
if (i4 >= i2 + i) {
|
||||
return i;
|
||||
}
|
||||
if ((bArr[i3] & 255) == 255 && bArr[i4] == 0) {
|
||||
System.arraycopy(bArr, i3 + 2, bArr, i4, (i - (i3 - i2)) - 2);
|
||||
i--;
|
||||
}
|
||||
i3 = i4;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:30:0x0074, code lost:
|
||||
if ((r10 & 1) != 0) goto L_0x0087;
|
||||
*/
|
||||
/* JADX WARNING: Code restructure failed: missing block: B:37:0x0082, code lost:
|
||||
if ((r10 & 128) != 0) goto L_0x0087;
|
||||
*/
|
||||
public static boolean y(w wVar, int i, int i2, boolean z2) {
|
||||
int i3;
|
||||
long j;
|
||||
int i4;
|
||||
int i5;
|
||||
int i6 = wVar.b;
|
||||
while (true) {
|
||||
try {
|
||||
boolean z3 = true;
|
||||
if (wVar.a() >= i2) {
|
||||
if (i >= 3) {
|
||||
i4 = wVar.f();
|
||||
j = wVar.t();
|
||||
i3 = wVar.x();
|
||||
} else {
|
||||
i4 = wVar.u();
|
||||
j = (long) wVar.u();
|
||||
i3 = 0;
|
||||
}
|
||||
if (i4 == 0 && j == 0 && i3 == 0) {
|
||||
wVar.D(i6);
|
||||
return true;
|
||||
}
|
||||
if (i == 4 && !z2) {
|
||||
if ((8421504 & j) != 0) {
|
||||
wVar.D(i6);
|
||||
return false;
|
||||
}
|
||||
j = (((j >> 24) & 255) << 21) | (j & 255) | (((j >> 8) & 255) << 7) | (((j >> 16) & 255) << 14);
|
||||
}
|
||||
if (i == 4) {
|
||||
i5 = (i3 & 64) != 0 ? 1 : 0;
|
||||
} else if (i == 3) {
|
||||
i5 = (i3 & 32) != 0 ? 1 : 0;
|
||||
} else {
|
||||
i5 = 0;
|
||||
}
|
||||
z3 = false;
|
||||
if (z3) {
|
||||
i5 += 4;
|
||||
}
|
||||
if (j < ((long) i5)) {
|
||||
wVar.D(i6);
|
||||
return false;
|
||||
} else if (((long) wVar.a()) < j) {
|
||||
return false;
|
||||
} else {
|
||||
wVar.E((int) j);
|
||||
}
|
||||
} else {
|
||||
wVar.D(i6);
|
||||
return true;
|
||||
}
|
||||
} finally {
|
||||
wVar.D(i6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.c2.g
|
||||
@Nullable
|
||||
public Metadata b(d dVar, ByteBuffer byteBuffer) {
|
||||
return d(byteBuffer.array(), byteBuffer.limit());
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:44:0x00b6 A[RETURN] */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:45:0x00b7 */
|
||||
@Nullable
|
||||
public Metadata d(byte[] bArr, int i) {
|
||||
C0085b bVar;
|
||||
ArrayList arrayList = new ArrayList();
|
||||
w wVar = new w(bArr, i);
|
||||
boolean z2 = false;
|
||||
int i2 = 10;
|
||||
if (wVar.a() < 10) {
|
||||
Log.w("Id3Decoder", "Data too short to be an ID3 tag");
|
||||
} else {
|
||||
int u = wVar.u();
|
||||
if (u != 4801587) {
|
||||
StringBuilder K = c.d.b.a.a.K("Unexpected first three bytes of ID3 tag header: 0x");
|
||||
K.append(String.format("%06X", Integer.valueOf(u)));
|
||||
Log.w("Id3Decoder", K.toString());
|
||||
} else {
|
||||
int s2 = wVar.s();
|
||||
wVar.E(1);
|
||||
int s3 = wVar.s();
|
||||
int r = wVar.r();
|
||||
if (s2 == 2) {
|
||||
if ((s3 & 64) != 0) {
|
||||
Log.w("Id3Decoder", "Skipped ID3 tag with majorVersion=2 and undefined compression scheme");
|
||||
}
|
||||
} else if (s2 == 3) {
|
||||
if ((s3 & 64) != 0) {
|
||||
int f = wVar.f();
|
||||
wVar.E(f);
|
||||
r -= f + 4;
|
||||
}
|
||||
} else if (s2 == 4) {
|
||||
if ((s3 & 64) != 0) {
|
||||
int r2 = wVar.r();
|
||||
wVar.E(r2 - 4);
|
||||
r -= r2;
|
||||
}
|
||||
if ((s3 & 16) != 0) {
|
||||
r -= 10;
|
||||
}
|
||||
} else {
|
||||
c.d.b.a.a.d0("Skipped ID3 tag with unsupported majorVersion=", s2, "Id3Decoder");
|
||||
}
|
||||
bVar = new C0085b(s2, s2 < 4 && (s3 & 128) != 0, r);
|
||||
if (bVar != null) {
|
||||
return null;
|
||||
}
|
||||
int i3 = wVar.b;
|
||||
if (bVar.a == 2) {
|
||||
i2 = 6;
|
||||
}
|
||||
int i4 = bVar.f779c;
|
||||
if (bVar.b) {
|
||||
i4 = x(wVar, i4);
|
||||
}
|
||||
wVar.C(i3 + i4);
|
||||
if (!y(wVar, bVar.a, i2, false)) {
|
||||
if (bVar.a != 4 || !y(wVar, 4, i2, true)) {
|
||||
StringBuilder K2 = c.d.b.a.a.K("Failed to validate ID3 tag with majorVersion=");
|
||||
K2.append(bVar.a);
|
||||
Log.w("Id3Decoder", K2.toString());
|
||||
return null;
|
||||
}
|
||||
z2 = true;
|
||||
}
|
||||
while (wVar.a() >= i2) {
|
||||
Id3Frame j = j(bVar.a, wVar, z2, i2, this.b);
|
||||
if (j != null) {
|
||||
arrayList.add(j);
|
||||
}
|
||||
}
|
||||
return new Metadata(arrayList);
|
||||
}
|
||||
}
|
||||
bVar = null;
|
||||
if (bVar != null) {
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,216 +0,0 @@
|
|||
package c.i.a.c.c2.l;
|
||||
|
||||
import c.i.a.c.c2.d;
|
||||
import c.i.a.c.c2.g;
|
||||
import c.i.a.c.i2.e0;
|
||||
import c.i.a.c.i2.v;
|
||||
import c.i.a.c.i2.w;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
import com.google.android.exoplayer2.metadata.scte35.PrivateCommand;
|
||||
import com.google.android.exoplayer2.metadata.scte35.SpliceInsertCommand;
|
||||
import com.google.android.exoplayer2.metadata.scte35.SpliceNullCommand;
|
||||
import com.google.android.exoplayer2.metadata.scte35.SpliceScheduleCommand;
|
||||
import com.google.android.exoplayer2.metadata.scte35.TimeSignalCommand;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
/* compiled from: SpliceInfoDecoder */
|
||||
public final class a extends g {
|
||||
public final w a = new w();
|
||||
public final v b = new v();
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public e0 f780c;
|
||||
|
||||
@Override // c.i.a.c.c2.g
|
||||
public Metadata b(d dVar, ByteBuffer byteBuffer) {
|
||||
int i;
|
||||
int i2;
|
||||
int i3;
|
||||
long j;
|
||||
boolean z2;
|
||||
long j2;
|
||||
ArrayList arrayList;
|
||||
boolean z3;
|
||||
boolean z4;
|
||||
int i4;
|
||||
long j3;
|
||||
long j4;
|
||||
boolean z5;
|
||||
int i5;
|
||||
int i6;
|
||||
int i7;
|
||||
long j5;
|
||||
boolean z6;
|
||||
List list;
|
||||
boolean z7;
|
||||
boolean z8;
|
||||
boolean z9;
|
||||
long j6;
|
||||
long j7;
|
||||
boolean z10;
|
||||
e0 e0Var = this.f780c;
|
||||
if (e0Var == null || dVar.q != e0Var.d()) {
|
||||
long j8 = dVar.m;
|
||||
e0 e0Var2 = new e0(j8);
|
||||
this.f780c = e0Var2;
|
||||
e0Var2.a(j8 - dVar.q);
|
||||
}
|
||||
byte[] array = byteBuffer.array();
|
||||
int limit = byteBuffer.limit();
|
||||
this.a.B(array, limit);
|
||||
this.b.j(array, limit);
|
||||
this.b.m(39);
|
||||
long g = (((long) this.b.g(1)) << 32) | ((long) this.b.g(32));
|
||||
this.b.m(20);
|
||||
int g2 = this.b.g(12);
|
||||
int g3 = this.b.g(8);
|
||||
this.a.E(14);
|
||||
Metadata.Entry entry = null;
|
||||
if (g3 == 0) {
|
||||
entry = new SpliceNullCommand();
|
||||
} else if (g3 != 255) {
|
||||
long j9 = 128;
|
||||
if (g3 == 4) {
|
||||
w wVar = this.a;
|
||||
int s2 = wVar.s();
|
||||
ArrayList arrayList2 = new ArrayList(s2);
|
||||
int i8 = 0;
|
||||
while (i8 < s2) {
|
||||
long t = wVar.t();
|
||||
boolean z11 = (wVar.s() & 128) != 0;
|
||||
ArrayList arrayList3 = new ArrayList();
|
||||
if (!z11) {
|
||||
int s3 = wVar.s();
|
||||
boolean z12 = (s3 & 128) != 0;
|
||||
boolean z13 = (s3 & 64) != 0;
|
||||
boolean z14 = (s3 & 32) != 0;
|
||||
long t2 = z13 ? wVar.t() : -9223372036854775807L;
|
||||
if (!z13) {
|
||||
int s4 = wVar.s();
|
||||
ArrayList arrayList4 = new ArrayList(s4);
|
||||
int i9 = 0;
|
||||
while (i9 < s4) {
|
||||
arrayList4.add(new SpliceScheduleCommand.b(wVar.s(), wVar.t(), null));
|
||||
i9++;
|
||||
s4 = s4;
|
||||
s2 = s2;
|
||||
}
|
||||
i4 = s2;
|
||||
arrayList3 = arrayList4;
|
||||
} else {
|
||||
i4 = s2;
|
||||
}
|
||||
if (z14) {
|
||||
long s5 = (long) wVar.s();
|
||||
j3 = 128;
|
||||
z5 = (s5 & 128) != 0;
|
||||
j4 = ((((s5 & 1) << 32) | wVar.t()) * 1000) / 90;
|
||||
} else {
|
||||
j3 = 128;
|
||||
z5 = false;
|
||||
j4 = -9223372036854775807L;
|
||||
}
|
||||
z2 = z5;
|
||||
j = j4;
|
||||
arrayList = arrayList3;
|
||||
i3 = wVar.x();
|
||||
z4 = z12;
|
||||
z3 = z13;
|
||||
j2 = t2;
|
||||
i2 = wVar.s();
|
||||
i = wVar.s();
|
||||
} else {
|
||||
i4 = s2;
|
||||
j3 = j9;
|
||||
arrayList = arrayList3;
|
||||
z4 = false;
|
||||
z3 = false;
|
||||
j2 = -9223372036854775807L;
|
||||
z2 = false;
|
||||
j = -9223372036854775807L;
|
||||
i3 = 0;
|
||||
i2 = 0;
|
||||
i = 0;
|
||||
}
|
||||
arrayList2.add(new SpliceScheduleCommand.c(t, z11, z4, z3, arrayList, j2, z2, j, i3, i2, i));
|
||||
i8++;
|
||||
j9 = j3;
|
||||
s2 = i4;
|
||||
}
|
||||
entry = new SpliceScheduleCommand(arrayList2);
|
||||
} else if (g3 == 5) {
|
||||
w wVar2 = this.a;
|
||||
e0 e0Var3 = this.f780c;
|
||||
long t3 = wVar2.t();
|
||||
boolean z15 = (wVar2.s() & 128) != 0;
|
||||
List emptyList = Collections.emptyList();
|
||||
if (!z15) {
|
||||
int s6 = wVar2.s();
|
||||
boolean z16 = (s6 & 128) != 0;
|
||||
boolean z17 = (s6 & 64) != 0;
|
||||
boolean z18 = (s6 & 32) != 0;
|
||||
boolean z19 = (s6 & 16) != 0;
|
||||
long a = (!z17 || z19) ? -9223372036854775807L : TimeSignalCommand.a(wVar2, g);
|
||||
if (!z17) {
|
||||
int s7 = wVar2.s();
|
||||
ArrayList arrayList5 = new ArrayList(s7);
|
||||
for (int i10 = 0; i10 < s7; i10++) {
|
||||
int s8 = wVar2.s();
|
||||
long a2 = !z19 ? TimeSignalCommand.a(wVar2, g) : -9223372036854775807L;
|
||||
arrayList5.add(new SpliceInsertCommand.b(s8, a2, e0Var3.b(a2), null));
|
||||
}
|
||||
emptyList = arrayList5;
|
||||
}
|
||||
if (z18) {
|
||||
long s9 = (long) wVar2.s();
|
||||
z10 = (s9 & 128) != 0;
|
||||
j7 = ((((s9 & 1) << 32) | wVar2.t()) * 1000) / 90;
|
||||
} else {
|
||||
z10 = false;
|
||||
j7 = -9223372036854775807L;
|
||||
}
|
||||
int x2 = wVar2.x();
|
||||
int s10 = wVar2.s();
|
||||
i7 = x2;
|
||||
z6 = z10;
|
||||
i5 = wVar2.s();
|
||||
list = emptyList;
|
||||
j5 = j7;
|
||||
i6 = s10;
|
||||
z9 = z16;
|
||||
j6 = a;
|
||||
z7 = z19;
|
||||
z8 = z17;
|
||||
} else {
|
||||
list = emptyList;
|
||||
j6 = -9223372036854775807L;
|
||||
z9 = false;
|
||||
z8 = false;
|
||||
z7 = false;
|
||||
z6 = false;
|
||||
j5 = -9223372036854775807L;
|
||||
i7 = 0;
|
||||
i6 = 0;
|
||||
i5 = 0;
|
||||
}
|
||||
entry = new SpliceInsertCommand(t3, z15, z9, z8, z7, j6, e0Var3.b(j6), list, z6, j5, i7, i6, i5);
|
||||
} else if (g3 == 6) {
|
||||
w wVar3 = this.a;
|
||||
e0 e0Var4 = this.f780c;
|
||||
long a3 = TimeSignalCommand.a(wVar3, g);
|
||||
entry = new TimeSignalCommand(a3, e0Var4.b(a3));
|
||||
}
|
||||
} else {
|
||||
w wVar4 = this.a;
|
||||
long t4 = wVar4.t();
|
||||
int i11 = g2 - 4;
|
||||
byte[] bArr = new byte[i11];
|
||||
System.arraycopy(wVar4.a, wVar4.b, bArr, 0, i11);
|
||||
wVar4.b += i11;
|
||||
entry = new PrivateCommand(t4, bArr, g);
|
||||
}
|
||||
return entry == null ? new Metadata(new Metadata.Entry[0]) : new Metadata(entry);
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
package c.i.a.c;
|
||||
|
||||
import c.i.a.c.g1;
|
||||
import c.i.a.c.i2.o;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class d implements o.a {
|
||||
public final /* synthetic */ int a;
|
||||
|
||||
public /* synthetic */ d(int i) {
|
||||
this.a = i;
|
||||
}
|
||||
|
||||
@Override // c.i.a.c.i2.o.a
|
||||
public final void invoke(Object obj) {
|
||||
((g1.a) obj).f(this.a);
|
||||
}
|
||||
}
|
|
@ -1,59 +0,0 @@
|
|||
package c.i.a.c;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.os.Handler;
|
||||
/* compiled from: AudioBecomingNoisyManager */
|
||||
public final class d0 {
|
||||
public final Context a;
|
||||
public final a b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public boolean f781c;
|
||||
|
||||
/* compiled from: AudioBecomingNoisyManager */
|
||||
public final class a extends BroadcastReceiver implements Runnable {
|
||||
public final b i;
|
||||
public final Handler j;
|
||||
|
||||
public a(Handler handler, b bVar) {
|
||||
this.j = handler;
|
||||
this.i = bVar;
|
||||
}
|
||||
|
||||
@Override // android.content.BroadcastReceiver
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if ("android.media.AUDIO_BECOMING_NOISY".equals(intent.getAction())) {
|
||||
this.j.post(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public void run() {
|
||||
if (d0.this.f781c) {
|
||||
p1.this.Y(false, -1, 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: AudioBecomingNoisyManager */
|
||||
public interface b {
|
||||
}
|
||||
|
||||
public d0(Context context, Handler handler, b bVar) {
|
||||
this.a = context.getApplicationContext();
|
||||
this.b = new a(handler, bVar);
|
||||
}
|
||||
|
||||
public void a(boolean z2) {
|
||||
if (z2 && !this.f781c) {
|
||||
this.a.registerReceiver(this.b, new IntentFilter("android.media.AUDIO_BECOMING_NOISY"));
|
||||
this.f781c = true;
|
||||
} else if (!z2 && this.f781c) {
|
||||
this.a.unregisterReceiver(this.b);
|
||||
this.f781c = false;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
package c.i.a.c;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import c.i.a.c.i2.f0;
|
||||
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||||
/* compiled from: PlaybackParameters */
|
||||
public final class d1 {
|
||||
public static final d1 a = new d1(1.0f, 1.0f);
|
||||
public final float b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final float f782c;
|
||||
public final int d;
|
||||
|
||||
public d1(float f, float f2) {
|
||||
boolean z2 = true;
|
||||
AnimatableValueParser.k(f > 0.0f);
|
||||
AnimatableValueParser.k(f2 <= 0.0f ? false : z2);
|
||||
this.b = f;
|
||||
this.f782c = f2;
|
||||
this.d = Math.round(f * 1000.0f);
|
||||
}
|
||||
|
||||
public boolean equals(@Nullable Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null || d1.class != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
d1 d1Var = (d1) obj;
|
||||
return this.b == d1Var.b && this.f782c == d1Var.f782c;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Float.floatToRawIntBits(this.f782c) + ((Float.floatToRawIntBits(this.b) + 527) * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return f0.k("PlaybackParameters(speed=%.2f, pitch=%.2f)", Float.valueOf(this.b), Float.valueOf(this.f782c));
|
||||
}
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
package c.i.a.c.d2;
|
||||
|
||||
import android.util.Pair;
|
||||
import c.i.a.c.d2.t;
|
||||
import c.i.a.c.d2.y;
|
||||
import c.i.a.c.r1;
|
||||
import java.util.Objects;
|
||||
/* compiled from: lambda */
|
||||
public final /* synthetic */ class a implements y.b {
|
||||
public final /* synthetic */ m a;
|
||||
public final /* synthetic */ Object b;
|
||||
|
||||
public /* synthetic */ a(m mVar, Object obj) {
|
||||
this.a = mVar;
|
||||
this.b = obj;
|
||||
}
|
||||
|
||||
/* JADX WARNING: Removed duplicated region for block: B:20:0x0097 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:21:0x00a3 */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:24:0x00af */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:33:0x00da */
|
||||
/* JADX WARNING: Removed duplicated region for block: B:35:? A[RETURN, SYNTHETIC] */
|
||||
@Override // c.i.a.c.d2.y.b
|
||||
public final void a(y yVar, r1 r1Var) {
|
||||
y.a aVar;
|
||||
long j;
|
||||
t.a aVar2;
|
||||
s sVar;
|
||||
t.a aVar3;
|
||||
m mVar = this.a;
|
||||
Object obj = this.b;
|
||||
Objects.requireNonNull(mVar);
|
||||
t tVar = (t) mVar;
|
||||
Void r1 = (Void) obj;
|
||||
if (tVar.q) {
|
||||
t.a aVar4 = tVar.n;
|
||||
tVar.n = new t.a(r1Var, aVar4.d, aVar4.e);
|
||||
s sVar2 = tVar.o;
|
||||
if (sVar2 != null) {
|
||||
tVar.u(sVar2.o);
|
||||
}
|
||||
} else if (r1Var.q()) {
|
||||
if (tVar.r) {
|
||||
t.a aVar5 = tVar.n;
|
||||
aVar3 = new t.a(r1Var, aVar5.d, aVar5.e);
|
||||
} else {
|
||||
aVar3 = new t.a(r1Var, r1.c.a, t.a.f808c);
|
||||
}
|
||||
tVar.n = aVar3;
|
||||
} else {
|
||||
r1Var.n(0, tVar.l);
|
||||
r1.c cVar = tVar.l;
|
||||
long j2 = cVar.q;
|
||||
Object obj2 = cVar.f953c;
|
||||
s sVar3 = tVar.o;
|
||||
if (sVar3 != null) {
|
||||
long j3 = sVar3.j;
|
||||
tVar.n.h(sVar3.i.a, tVar.m);
|
||||
long j4 = tVar.m.e + j3;
|
||||
if (j4 != tVar.n.n(0, tVar.l).q) {
|
||||
j = j4;
|
||||
Pair<Object, Long> j5 = r1Var.j(tVar.l, tVar.m, 0, j);
|
||||
Object obj3 = j5.first;
|
||||
long longValue = ((Long) j5.second).longValue();
|
||||
if (!tVar.r) {
|
||||
t.a aVar6 = tVar.n;
|
||||
aVar2 = new t.a(r1Var, aVar6.d, aVar6.e);
|
||||
} else {
|
||||
aVar2 = new t.a(r1Var, obj2, obj3);
|
||||
}
|
||||
tVar.n = aVar2;
|
||||
sVar = tVar.o;
|
||||
if (sVar != null) {
|
||||
tVar.u(longValue);
|
||||
y.a aVar7 = sVar.i;
|
||||
Object obj4 = aVar7.a;
|
||||
if (tVar.n.e != null && obj4.equals(t.a.f808c)) {
|
||||
obj4 = tVar.n.e;
|
||||
}
|
||||
aVar = aVar7.b(obj4);
|
||||
tVar.r = true;
|
||||
tVar.q = true;
|
||||
tVar.q(tVar.n);
|
||||
if (aVar == null) {
|
||||
s sVar4 = tVar.o;
|
||||
Objects.requireNonNull(sVar4);
|
||||
sVar4.d(aVar);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
j = j2;
|
||||
Pair<Object, Long> j5 = r1Var.j(tVar.l, tVar.m, 0, j);
|
||||
Object obj3 = j5.first;
|
||||
long longValue = ((Long) j5.second).longValue();
|
||||
if (!tVar.r) {
|
||||
}
|
||||
tVar.n = aVar2;
|
||||
sVar = tVar.o;
|
||||
if (sVar != null) {
|
||||
}
|
||||
}
|
||||
aVar = null;
|
||||
tVar.r = true;
|
||||
tVar.q = true;
|
||||
tVar.q(tVar.n);
|
||||
if (aVar == null) {
|
||||
}
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue