av1parser: Remove impossible condition

unsigned integer cannot be negative

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3430>
This commit is contained in:
Seungha Yang 2022-11-18 01:41:33 +09:00 committed by GStreamer Marge Bot
parent 9d829b85e4
commit 3ef2955c7d

View file

@ -1449,9 +1449,7 @@ gst_av1_parser_parse_sequence_header_obu (GstAV1Parser * parser,
gst_av1_parse_reset_state (parser, FALSE); gst_av1_parse_reset_state (parser, FALSE);
/* choose_operating_point() set the operating_point */ /* choose_operating_point() set the operating_point */
if (parser->state.operating_point < 0 || if (parser->state.operating_point > seq_header->operating_points_cnt_minus_1) {
parser->state.operating_point >
seq_header->operating_points_cnt_minus_1) {
GST_WARNING ("Invalid operating_point %d set by user, just use 0", GST_WARNING ("Invalid operating_point %d set by user, just use 0",
parser->state.operating_point); parser->state.operating_point);
parser->state.operating_point_idc = seq_header->operating_points[0].idc; parser->state.operating_point_idc = seq_header->operating_points[0].idc;