From 371482a90c089f5d302747933cfb6d1fc327a168 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 20 Dec 2013 11:45:38 +0100 Subject: [PATCH] qtdemux: Fix calcuation of descriptor length https://bugzilla.gnome.org/show_bug.cgi?id=720813 --- gst/isomp4/descriptors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/isomp4/descriptors.c b/gst/isomp4/descriptors.c index 73d54e8..713ffdc 100644 --- a/gst/isomp4/descriptors.c +++ b/gst/isomp4/descriptors.c @@ -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; -- 2.7.4