qtdemux: Fix off-by-one introduced in last commit
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 2 Apr 2010 16:50:45 +0000 (18:50 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 2 Apr 2010 16:50:45 +0000 (18:50 +0200)
gst/qtdemux/qtdemux.c

index 091f94a8fa77b7f3273d78182cfd6a7b255bfa29..347b6e121f80f8657fb2250baf7892cf1d3fa56a 100644 (file)
@@ -5094,7 +5094,7 @@ static void
 avc_get_profile_and_level_string (const guint8 * avc_data, gint size,
     gchar ** profile, gchar ** level)
 {
-  if (size >= 2)
+  if (size >= 3)
     /* First byte is the version, second is the profile indication,
      * and third is the 5 contraint_set_flags and 3 reserved bits */
     *profile = avc_profile_idc_to_string (QT_UINT8 (avc_data + 1),