discord-jadx/app/src/main/java/c/i/a/c/a2/j0/x.java

69 lines
1.8 KiB
Java

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);
}
}
}