package androidx.media3.common;

import androidx.media3.common.util.UnstableApi;
import defpackage.if7;

/* JADX INFO: loaded from: classes.dex */
@UnstableApi
public class FrameInfo {
    public final Format format;
    public final long offsetToAddUs;

    public FrameInfo(Format format, long j) {
        if7.f(format.colorInfo != null, "format colorInfo must be set");
        int i = format.width;
        if7.c("format width must be positive, but is: %s", i, i > 0);
        int i2 = format.height;
        if7.c("format height must be positive, but is: %s", i2, i2 > 0);
        this.format = format;
        this.offsetToAddUs = j;
    }
}
