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:
Vineeth TM 2015-06-17 10:44:16 +09:00 committed by Nicolas Dufresne
parent a760f9ee51
commit 7823e6d606

View file

@ -210,16 +210,13 @@ nal_reader_get_ue (NalReader * nr, guint32 * val)
guint8 bit;
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;
}
while (bit == 0) {
i++;
if G_UNLIKELY
((!nal_reader_get_bits_uint8 (nr, &bit, 1)))
return FALSE;
if (G_UNLIKELY (!nal_reader_get_bits_uint8 (nr, &bit, 1)))
return FALSE;
}
if (G_UNLIKELY (i > 32))