mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
qtdemux: Fix off-by-one introduced in last commit
This commit is contained in:
parent
ccef64be39
commit
9317ad6fe9
1 changed files with 1 additions and 1 deletions
|
@ -5094,7 +5094,7 @@ static void
|
||||||
avc_get_profile_and_level_string (const guint8 * avc_data, gint size,
|
avc_get_profile_and_level_string (const guint8 * avc_data, gint size,
|
||||||
gchar ** profile, gchar ** level)
|
gchar ** profile, gchar ** level)
|
||||||
{
|
{
|
||||||
if (size >= 2)
|
if (size >= 3)
|
||||||
/* First byte is the version, second is the profile indication,
|
/* First byte is the version, second is the profile indication,
|
||||||
* and third is the 5 contraint_set_flags and 3 reserved bits */
|
* and third is the 5 contraint_set_flags and 3 reserved bits */
|
||||||
*profile = avc_profile_idc_to_string (QT_UINT8 (avc_data + 1),
|
*profile = avc_profile_idc_to_string (QT_UINT8 (avc_data + 1),
|
||||||
|
|
Loading…
Reference in a new issue