mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-02 02:03:54 +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,15 +210,12 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue