mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
h265parse: Fix calculation of codec_data buffer size
This commit is contained in:
parent
ff8898bbda
commit
eb1f1ff0a5
1 changed files with 1 additions and 2 deletions
|
@ -1090,8 +1090,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);
|
||||
|
|
Loading…
Reference in a new issue