summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-05-18 11:42:17 +0300
committerSebastian Dröge <sebastian@centricular.com>2017-05-29 11:07:58 +0300
commit4c14cb747e4f9d39beb44a7c3ab655bf989e3cb5 (patch)
treeb4f4d7aa3622a5b9c69109136d24ace73a971bb8
parentcf731495bceccb8c237ac820f81ff6835e7c2430 (diff)
downloadgstreamer-plugins-bad-4c14cb747e4f9d39beb44a7c3ab655bf989e3cb5.tar.gz
h265parse: Fix calculation of codec_data buffer size
-rw-r--r--gst/videoparsers/gsth265parse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c
index f965a4b49..09f176cf4 100644
--- a/gst/videoparsers/gsth265parse.c
+++ b/gst/videoparsers/gsth265parse.c
@@ -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);