package androidx.media3.extractor.text;

import F3.O;
import androidx.media3.common.C;
import androidx.media3.common.text.Cue;
import androidx.media3.common.util.UnstableApi;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
@UnstableApi
public class CuesWithTiming {
    public final O cues;
    public final long durationUs;
    public final long endTimeUs;
    public final long startTimeUs;

    public CuesWithTiming(List<Cue> list, long j4, long j6) {
        this.cues = O.p(list);
        this.startTimeUs = j4;
        this.durationUs = j6;
        long j7 = C.TIME_UNSET;
        if (j4 != C.TIME_UNSET && j6 != C.TIME_UNSET) {
            j7 = j4 + j6;
        }
        this.endTimeUs = j7;
    }
}
