mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-16 13:04:18 +00:00
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
1 changed files with 3 additions and 6 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue