package n2;

import androidx.annotation.Nullable;
import androidx.media3.common.util.Assertions;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
public abstract class l extends s1.g implements g {

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

    @Nullable
    private g subtitle;

    @Override // n2.g
    public final int a(long j10) {
        return ((g) Assertions.checkNotNull(this.subtitle)).a(j10 - this.f30780a);
    }

    @Override // n2.g
    public final long b(int i10) {
        return ((g) Assertions.checkNotNull(this.subtitle)).b(i10) + this.f30780a;
    }

    @Override // n2.g
    public final List c(long j10) {
        return ((g) Assertions.checkNotNull(this.subtitle)).c(j10 - this.f30780a);
    }

    @Override // s1.g, s1.a
    public final void clear() {
        super.clear();
        this.subtitle = null;
    }

    @Override // n2.g
    public final int d() {
        return ((g) Assertions.checkNotNull(this.subtitle)).d();
    }

    public final void e(long j10, g gVar, long j11) {
        this.timeUs = j10;
        this.subtitle = gVar;
        if (j11 != Long.MAX_VALUE) {
            j10 = j11;
        }
        this.f30780a = j10;
    }
}
