From 7d6a80e13d41e1863f9e4f188adba80187fd57ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 1 Aug 2017 18:38:40 +0200 Subject: [PATCH] vaapiencode: h265: compare an unsigned int if not zero An unsigned value can never be negative, so this test (greater than zero) will always evaluate the same way. Thus change it to just if it's not zero. --- gst/vaapi/gstvaapiencode_h265.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapiencode_h265.c b/gst/vaapi/gstvaapiencode_h265.c index 8c8d2e214f..3a71d0676c 100644 --- a/gst/vaapi/gstvaapiencode_h265.c +++ b/gst/vaapi/gstvaapiencode_h265.c @@ -281,7 +281,7 @@ _h265_byte_stream_next_nal (guint8 * buffer, guint32 len, guint32 * nal_size) guint32 flag = 0xFFFFFFFF; guint32 nal_start_len = 0; - g_assert (len >= 0 && buffer && nal_size); + g_assert (len != 0U && buffer && nal_size); if (len < 3) { *nal_size = len; nal_start = (len ? buffer : NULL);