package o; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; /* loaded from: classes.dex */ public final class oYl extends AbstractC16191mAf { private mPA b; private VkS e; public oYl(C16613piz c16613piz) { super(c16613piz); this.b = new mPA(this); } @Override // o.AbstractC16191mAf public final zju d() { return new zju(); } @Override // o.AbstractC16191mAf public final boolean b(C6804ccN c6804ccN) { return Arrays.asList("ftyp", "hdlr", "hvc1").contains(c6804ccN.d); } @Override // o.AbstractC16191mAf public final boolean a(C6804ccN c6804ccN) { return c6804ccN.d.equals("meta") || c6804ccN.d.equals("iprp") || c6804ccN.d.equals("ipco"); } @Override // o.AbstractC16191mAf public final AbstractC16191mAf b(C6804ccN c6804ccN, byte[] bArr) throws IOException { if (bArr != null) { C0629LEh c0629LEh = new C0629LEh(bArr); if (!c6804ccN.d.equals("ftyp")) { if (c6804ccN.d.equals("hdlr")) { VkS vkS = new VkS(c0629LEh, c6804ccN); this.e = vkS; return vkS.a.equals("pict") ? new OQe(this.a) : this.b.d; } } else { C16737qoe c16737qoe = new C16737qoe(c0629LEh, c6804ccN); T t = this.c; t.e(1, c16737qoe.e); t.e(2, c16737qoe.c); ArrayList arrayList = c16737qoe.a; t.c(3, (String[]) arrayList.toArray(new String[arrayList.size()])); if (!c16737qoe.a.contains("mif1")) { T t2 = this.c; BrP.b(new Object[]{t2, "File Type Box does not contain required brand, mif1"}, -1786863991, 1786863992, System.identityHashCode(t2)); } } } return this; } @Override // o.AbstractC16191mAf public final void b(C6804ccN c6804ccN, Eaa eaa) throws IOException { if (c6804ccN.d.equals("meta")) { new KBx(eaa, c6804ccN); } } }