summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-12-17 17:05:22 +0100
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-12-17 18:31:36 +0100
commitf82cec2ce309af61e3bee41735ed847eb9bd041f (patch)
treedff687ffdac64b574df1fca7cc5c583709b68207
parentd69a4b8c0553d57583772600ceb7a1433e354af8 (diff)
libs: encoder: h264fei: remove unnecessary assert
Issue detected by Coverity An unsigned value can never be negative, so this test will always evaluate the same way. In add_slice_headers: An unsigned value can never be less than 0
-rw-r--r--gst-libs/gst/vaapi/gstvaapifeienc_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapifeienc_h264.c b/gst-libs/gst/vaapi/gstvaapifeienc_h264.c
index ab8642a5..333744bc 100644
--- a/gst-libs/gst/vaapi/gstvaapifeienc_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapifeienc_h264.c
@@ -864,7 +864,7 @@ add_slice_headers (GstVaapiFeiEncH264 * feienc, GstVaapiEncPicture * picture,
slice_param->num_ref_idx_l1_active_minus1 = reflist_1_count - 1;
else
slice_param->num_ref_idx_l1_active_minus1 = 0;
- g_assert (slice_param->num_ref_idx_l0_active_minus1 >= 0);
+ g_assert (slice_param->num_ref_idx_l0_active_minus1 == 0);
g_assert (slice_param->num_ref_idx_l1_active_minus1 == 0);
i_ref = 0;