package com.google.android.exoplayer2.c.e;

import com.google.android.exoplayer2.c.l;
import com.tencent.matrix.trace.core.AppMethodBeat;

class a$a implements l {
    final /* synthetic */ a aZY;

    private a$a(a aVar) {
        this.aZY = aVar;
    }

    /* synthetic */ a$a(a aVar, byte b) {
        this(aVar);
    }

    public final boolean qX() {
        return true;
    }

    public final long M(long j) {
        AppMethodBeat.i(95019);
        long j2;
        if (j == 0) {
            j2 = this.aZY.aZQ;
            AppMethodBeat.o(95019);
            return j2;
        }
        j2 = this.aZY.aZR.U(j);
        a aVar = this.aZY;
        j2 = (((j2 * (aVar.aXw - aVar.aZQ)) / aVar.aZS) - 30000) + this.aZY.aZQ;
        if (j2 < aVar.aZQ) {
            j2 = aVar.aZQ;
        }
        if (j2 >= aVar.aXw) {
            j2 = aVar.aXw - 1;
        }
        AppMethodBeat.o(95019);
        return j2;
    }

    public final long getDurationUs() {
        AppMethodBeat.i(95020);
        long T = this.aZY.aZR.T(this.aZY.aZS);
        AppMethodBeat.o(95020);
        return T;
    }
}
