diff options
author | Scott D Phillips <scott.d.phillips@intel.com> | 2016-05-25 16:57:49 -0700 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-05-30 12:42:24 +0300 |
commit | 3edd64166708efb0d861dde5f9169e3ff17d2197 (patch) | |
tree | 432320e6183c9cdad673e0f27edc4781d7884449 /gst/videoparsers | |
parent | 1d8673af624385963bae4fb5639a570d339f7b92 (diff) | |
download | gstreamer-plugins-bad-3edd64166708efb0d861dde5f9169e3ff17d2197.tar.gz |
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
Diffstat (limited to 'gst/videoparsers')
-rw-r--r-- | gst/videoparsers/gsth265parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index f56b995f2..7954793f8 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -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); |