Commit 4c14cb74 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

h265parse: Fix calculation of codec_data buffer size

parent cf731495
......@@ -1088,8 +1088,7 @@ gst_h265_parse_make_codec_data (GstH265Parse * h265parse)
buf =
gst_buffer_new_allocate (NULL,
23 + num_arrays + (3 * num_arrays) + vps_size + sps_size + pps_size,
NULL);
23 + (3 * num_arrays) + vps_size + sps_size + pps_size, NULL);
gst_buffer_map (buf, &map, GST_MAP_WRITE);
data = map.data;
memset (data, 0, map.size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment