qtdemux: Fix calcuation of descriptor length
authorSebastian Dröge <sebastian@centricular.com>
Fri, 20 Dec 2013 10:45:38 +0000 (11:45 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 23 Dec 2013 14:09:49 +0000 (15:09 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=720813

gst/isomp4/descriptors.c

index 73d54e8..713ffdc 100644 (file)
@@ -86,7 +86,7 @@ expandable_size_get_length (guint8 * ptr, guint32 array_size)
   guint32 index = 0;
 
   while (next && index < array_size) {
-    next = ((ptr[index] & 0x80) == 1);
+    next = (ptr[index] & 0x80);
     index++;
   }
   return index;