From 3ef2955c7d09618112cd36f41363e77fdec07c39 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 18 Nov 2022 01:41:33 +0900 Subject: [PATCH] av1parser: Remove impossible condition unsigned integer cannot be negative Part-of: --- .../gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c index e2876db01f..17a72ba9ed 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c @@ -1449,9 +1449,7 @@ gst_av1_parser_parse_sequence_header_obu (GstAV1Parser * parser, 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;