From: Seungha Yang Date: Thu, 17 Nov 2022 16:41:33 +0000 (+0900) Subject: av1parser: Remove impossible condition X-Git-Tag: 1.22.0~319 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ef2955c7d09618112cd36f41363e77fdec07c39;p=platform%2Fupstream%2Fgstreamer.git av1parser: Remove impossible condition unsigned integer cannot be negative Part-of: --- 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;