summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapiencode_h265.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-08-01 18:38:40 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-08-24 13:04:22 +0200
commitac242757f62c90ea2b120239eef2ec800101f258 (patch)
treee18c051ac1f5abe469aa5fa13e874c33bd450c6b /gst/vaapi/gstvaapiencode_h265.c
parentee55ffe328a304187a77c3afe3b6b0aa7d370eb1 (diff)
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.
Diffstat (limited to 'gst/vaapi/gstvaapiencode_h265.c')
-rw-r--r--gst/vaapi/gstvaapiencode_h265.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapiencode_h265.c b/gst/vaapi/gstvaapiencode_h265.c
index 8c8d2e21..3a71d067 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);