[gst-cvs] gst-plugins-good: qtdemux: Fix off-by-one introduced in last commit

Sebastian Dröge slomo at kemper.freedesktop.org
Fri Apr 2 09:52:27 PDT 2010


Module: gst-plugins-good
Branch: master
Commit: 9317ad6fe95c30a9f482d62284cbcd16294def88
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=9317ad6fe95c30a9f482d62284cbcd16294def88

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Fri Apr  2 18:50:45 2010 +0200

qtdemux: Fix off-by-one introduced in last commit

---

 gst/qtdemux/qtdemux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 091f94a..347b6e1 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -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),





More information about the Gstreamer-commits mailing list