package com.applovin.impl; import com.applovin.impl.dp; import com.applovin.impl.f9; import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes; import java.util.List; /* loaded from: classes.dex */ public final class nj { private final List a; private final qo[] b; public nj(List list) { this.a = list; this.b = new qo[list.size()]; } public void a(long j, bh bhVar) { c3.a(j, bhVar, this.b); } public void a(m8 m8Var, dp.d dVar) { for (int i = 0; i < this.b.length; i++) { dVar.a(); qo a = m8Var.a(dVar.c(), 3); f9 f9Var = (f9) this.a.get(i); String str = f9Var.m; b1.a(MimeTypes.APPLICATION_CEA608.equals(str) || MimeTypes.APPLICATION_CEA708.equals(str), "Invalid closed caption mime type provided: " + str); String str2 = f9Var.a; if (str2 == null) { str2 = dVar.b(); } a.a(new f9.b().c(str2).f(str).o(f9Var.d).e(f9Var.c).a(f9Var.E).a(f9Var.o).a()); this.b[i] = a; } } }