gst: encode: h264_fei: remove useless comparison
The expression "len >= 0" is always true since "len" is an unsigned type. And it is clear that the writers intention was not to write "len > 0" since we handle len == 0 in the ensuing "if (len < 3)" conditional block.
This commit is contained in:
parent
1ce66e2ed5
commit
73ac0c4e50
@ -241,7 +241,7 @@ _h264_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 (buffer && nal_size);
|
||||
if (len < 3) {
|
||||
*nal_size = len;
|
||||
nal_start = (len ? buffer : NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user