diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-04-02 18:50:45 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-04-02 18:50:45 +0200 |
commit | 9317ad6fe95c30a9f482d62284cbcd16294def88 (patch) | |
tree | 72cf646d0f669db4078f9cd2fa38d275b9ab2931 | |
parent | ccef64be3996e6bb47a974cf64c0fa311c463700 (diff) |
qtdemux: Fix off-by-one introduced in last commit
-rw-r--r-- | 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 091f94a8f..347b6e121 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), |