mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
h265parse: Don't assume contiguous id's in make_codec_data
vps/sps/pps id's are not required to be used contiguously. https://bugzilla.gnome.org/show_bug.cgi?id=766891
This commit is contained in:
parent
1d8673af62
commit
3edd641667
1 changed files with 3 additions and 3 deletions
|
@ -1144,7 +1144,7 @@ gst_h265_parse_make_codec_data (GstH265Parse * h265parse)
|
|||
GST_WRITE_UINT16_BE (data, num_vps);
|
||||
data += 2;
|
||||
|
||||
for (i = 0; i < num_vps; i++) {
|
||||
for (i = 0; i < GST_H265_MAX_VPS_COUNT; i++) {
|
||||
if ((nal = h265parse->vps_nals[i])) {
|
||||
gsize nal_size = gst_buffer_get_size (nal);
|
||||
GST_WRITE_UINT16_BE (data, nal_size);
|
||||
|
@ -1163,7 +1163,7 @@ gst_h265_parse_make_codec_data (GstH265Parse * h265parse)
|
|||
GST_WRITE_UINT16_BE (data, num_sps);
|
||||
data += 2;
|
||||
|
||||
for (i = 0; i < num_sps; i++) {
|
||||
for (i = 0; i < GST_H265_MAX_SPS_COUNT; i++) {
|
||||
if ((nal = h265parse->sps_nals[i])) {
|
||||
gsize nal_size = gst_buffer_get_size (nal);
|
||||
GST_WRITE_UINT16_BE (data, nal_size);
|
||||
|
@ -1182,7 +1182,7 @@ gst_h265_parse_make_codec_data (GstH265Parse * h265parse)
|
|||
GST_WRITE_UINT16_BE (data, num_pps);
|
||||
data += 2;
|
||||
|
||||
for (i = 0; i < num_pps; i++) {
|
||||
for (i = 0; i < GST_H265_MAX_PPS_COUNT; i++) {
|
||||
if ((nal = h265parse->pps_nals[i])) {
|
||||
gsize nal_size = gst_buffer_get_size (nal);
|
||||
GST_WRITE_UINT16_BE (data, nal_size);
|
||||
|
|
Loading…
Reference in a new issue