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 f743c; 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.f743c = 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.f2194x) { Format.b a = format.a(); a.o = d; Format a2 = a.a(); this.a = a2; this.f743c.e(a2); } int a3 = wVar.a(); this.f743c.c(wVar, a3); w wVar2 = this.f743c; e0 e0Var = this.b; synchronized (e0Var) { long j3 = e0Var.f898c; 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); } } }