h265parse: Fix calculation of codec_data buffer size

This commit is contained in:
Sebastian Dröge 2017-05-18 11:42:17 +03:00
parent ff8898bbda
commit eb1f1ff0a5

View file

@ -1090,8 +1090,7 @@ gst_h265_parse_make_codec_data (GstH265Parse * h265parse)
buf = buf =
gst_buffer_new_allocate (NULL, gst_buffer_new_allocate (NULL,
23 + num_arrays + (3 * num_arrays) + vps_size + sps_size + pps_size, 23 + (3 * num_arrays) + vps_size + sps_size + pps_size, NULL);
NULL);
gst_buffer_map (buf, &map, GST_MAP_WRITE); gst_buffer_map (buf, &map, GST_MAP_WRITE);
data = map.data; data = map.data;
memset (data, 0, map.size); memset (data, 0, map.size);