nalutils: trivial patch to check if
trivial patch to add proper ( while checking for if(G_UNLIKELY()) https://bugzilla.gnome.org/show_bug.cgi?id=751087
This commit is contained in:
parent
a760f9ee51
commit
7823e6d606
@ -210,16 +210,13 @@ nal_reader_get_ue (NalReader * nr, guint32 * val)
|
|||||||
guint8 bit;
|
guint8 bit;
|
||||||
guint32 value;
|
guint32 value;
|
||||||
|
|
||||||
if (G_UNLIKELY (!nal_reader_get_bits_uint8 (nr, &bit, 1))) {
|
if (G_UNLIKELY (!nal_reader_get_bits_uint8 (nr, &bit, 1)))
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
|
|
||||||
while (bit == 0) {
|
while (bit == 0) {
|
||||||
i++;
|
i++;
|
||||||
if G_UNLIKELY
|
if (G_UNLIKELY (!nal_reader_get_bits_uint8 (nr, &bit, 1)))
|
||||||
((!nal_reader_get_bits_uint8 (nr, &bit, 1)))
|
return FALSE;
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (G_UNLIKELY (i > 32))
|
if (G_UNLIKELY (i > 32))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user