mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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.
This commit is contained in:
parent
5f64d6df6c
commit
7d6a80e13d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue