76 lines
2.4 KiB
Java
76 lines
2.4 KiB
Java
|
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 f713c;
|
||
|
public final int d;
|
||
|
|
||
|
public a(int i, e0 e0Var, int i2) {
|
||
|
this.f713c = 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.f908c;
|
||
|
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 i22 = AnimatableValueParser.i2(wVar, i2, this.f713c);
|
||
|
if (i22 != -9223372036854775807L) {
|
||
|
long b = this.a.b(i22);
|
||
|
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);
|
||
|
}
|
||
|
}
|