From eb1f1ff0a588fe1a0ebde908a9a4a7d9585581cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 18 May 2017 11:42:17 +0300 Subject: [PATCH] h265parse: Fix calculation of codec_data buffer size --- gst/videoparsers/gsth265parse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index 36cd8ec0a5..951b70dc5c 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -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);