diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-06-22 10:13:38 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-06-22 10:13:55 +0200 |
commit | eca1614f08b83e4bc845597f2d501a58c372aca7 (patch) | |
tree | c723dcbca2dec284a6abeae305e327a6dbf8bb5f /gst/h264parse | |
parent | d631e1b34803eaaed2eee6f5452a0b1c2676fd88 (diff) | |
download | gstreamer-plugins-bad-eca1614f08b83e4bc845597f2d501a58c372aca7.tar.gz |
legacyh264parse: create correct avc codec-data
Fixes #653013.
Diffstat (limited to 'gst/h264parse')
-rw-r--r-- | gst/h264parse/gsth264parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/h264parse/gsth264parse.c b/gst/h264parse/gsth264parse.c index fe0e0fa39..90a537bb7 100644 --- a/gst/h264parse/gsth264parse.c +++ b/gst/h264parse/gsth264parse.c @@ -1134,11 +1134,11 @@ gst_h264_parse_make_codec_data (GstH264Parse * h264parse) num_sps++; /* size bytes also count */ sps_size += GST_BUFFER_SIZE (nal) - 4 + 2; - if (GST_BUFFER_SIZE (nal) >= 7) { + if (GST_BUFFER_SIZE (nal) >= 8) { found = TRUE; - profile_idc = (GST_BUFFER_DATA (nal))[4]; - profile_comp = (GST_BUFFER_DATA (nal))[5]; - level_idc = (GST_BUFFER_DATA (nal))[6]; + profile_idc = (GST_BUFFER_DATA (nal))[5]; + profile_comp = (GST_BUFFER_DATA (nal))[6]; + level_idc = (GST_BUFFER_DATA (nal))[7]; } } } |