nalutils: trivial patch to check if
authorVineeth TM <vineeth.tm@samsung.com>
Wed, 17 Jun 2015 01:44:16 +0000 (10:44 +0900)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Wed, 17 Jun 2015 02:05:34 +0000 (22:05 -0400)
trivial patch to add proper ( while checking for if(G_UNLIKELY())

https://bugzilla.gnome.org/show_bug.cgi?id=751087

gst-libs/gst/codecparsers/nalutils.c

index 5d20e81..b949acb 100644 (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))