diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2015-06-17 10:44:16 +0900 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2015-06-16 22:05:34 -0400 |
commit | 7823e6d6065985fcef76f14c0d7cf36f8bb8cc59 (patch) | |
tree | c68cf0e29370ce3b2f305218f3166c3f7e946ea8 /gst-libs | |
parent | a760f9ee5173a2a959aff7d329bf022ee7b8008e (diff) | |
download | gstreamer-plugins-bad-7823e6d6065985fcef76f14c0d7cf36f8bb8cc59.tar.gz |
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
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/codecparsers/nalutils.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gst-libs/gst/codecparsers/nalutils.c b/gst-libs/gst/codecparsers/nalutils.c index 5d20e818a..b949acbd4 100644 --- a/gst-libs/gst/codecparsers/nalutils.c +++ b/gst-libs/gst/codecparsers/nalutils.c @@ -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)) |