package com.google.android.gms.internal.ads;

import java.nio.ByteBuffer;
import java.util.Date;

/* JADX INFO: loaded from: classes2.dex */
public final class hd extends zf2 {
    public double Q;
    public float R;
    public eg2 S;
    public long T;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public int f12128i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public Date f12129j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public Date f12130k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public long f12131l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public long f12132m;

    @Override // com.google.android.gms.internal.ads.zf2
    public final void b(ByteBuffer byteBuffer) {
        int i10 = byteBuffer.get();
        if (i10 < 0) {
            i10 += 256;
        }
        this.f12128i = i10;
        byteBuffer.get();
        byteBuffer.get();
        byteBuffer.get();
        if (!this.f19253b) {
            c();
        }
        if (this.f12128i == 1) {
            this.f12129j = vj1.f(za2.E(byteBuffer));
            this.f12130k = vj1.f(za2.E(byteBuffer));
            this.f12131l = za2.d(byteBuffer);
            this.f12132m = za2.E(byteBuffer);
        } else {
            this.f12129j = vj1.f(za2.d(byteBuffer));
            this.f12130k = vj1.f(za2.d(byteBuffer));
            this.f12131l = za2.d(byteBuffer);
            this.f12132m = za2.d(byteBuffer);
        }
        this.Q = za2.F(byteBuffer);
        byteBuffer.get(new byte[2]);
        this.R = ((short) ((r1[1] & 255) | ((short) (65280 & (r1[0] << 8))))) / 256.0f;
        byteBuffer.get();
        byteBuffer.get();
        za2.d(byteBuffer);
        za2.d(byteBuffer);
        this.S = new eg2(za2.F(byteBuffer), za2.F(byteBuffer), za2.F(byteBuffer), za2.F(byteBuffer), za2.K(byteBuffer), za2.K(byteBuffer), za2.K(byteBuffer), za2.F(byteBuffer), za2.F(byteBuffer));
        byteBuffer.getInt();
        byteBuffer.getInt();
        byteBuffer.getInt();
        byteBuffer.getInt();
        byteBuffer.getInt();
        byteBuffer.getInt();
        this.T = za2.d(byteBuffer);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("MovieHeaderBox[creationTime=");
        sb.append(this.f12129j);
        sb.append(";modificationTime=");
        sb.append(this.f12130k);
        sb.append(";timescale=");
        sb.append(this.f12131l);
        sb.append(";duration=");
        sb.append(this.f12132m);
        sb.append(";rate=");
        sb.append(this.Q);
        sb.append(";volume=");
        sb.append(this.R);
        sb.append(";matrix=");
        sb.append(this.S);
        sb.append(";nextTrackId=");
        return defpackage.e.m(sb, this.T, "]");
    }
}
