unsigned integer cannot be negative
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3430>
gst_av1_parse_reset_state (parser, FALSE);
/* choose_operating_point() set the operating_point */
- if (parser->state.operating_point < 0 ||
- parser->state.operating_point >
- seq_header->operating_points_cnt_minus_1) {
+ if (parser->state.operating_point > seq_header->operating_points_cnt_minus_1) {
GST_WARNING ("Invalid operating_point %d set by user, just use 0",
parser->state.operating_point);
parser->state.operating_point_idc = seq_header->operating_points[0].idc;