summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorScott D Phillips <scott.d.phillips@intel.com>2016-09-27 14:17:49 -0700
committerJosep Torra <n770galaxy@gmail.com>2016-11-14 15:17:09 +0100
commit2905a7e33eb5618b5b505414b595bd59441fb171 (patch)
tree8d8760d6dfa8a3b880fcba1e20ba2c5e70da8633 /sys
parent22551a42cc0bf31485b2b19abfe2ebadcffbfaf9 (diff)
downloadgstreamer-plugins-bad-2905a7e33eb5618b5b505414b595bd59441fb171.tar.gz
msdk: Width and Height need to be integer multiples of 32
https://bugzilla.gnome.org/show_bug.cgi?id=770990
Diffstat (limited to 'sys')
-rw-r--r--sys/msdk/gstmsdkenc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/msdk/gstmsdkenc.c b/sys/msdk/gstmsdkenc.c
index fb92ad01a..c035a84ff 100644
--- a/sys/msdk/gstmsdkenc.c
+++ b/sys/msdk/gstmsdkenc.c
@@ -165,8 +165,8 @@ gst_msdkenc_init_encoder (GstMsdkEnc * thiz)
thiz->param.mfx.QPB = thiz->qpb;
}
- thiz->param.mfx.FrameInfo.Width = GST_ROUND_UP_16 (info->width);
- thiz->param.mfx.FrameInfo.Height = GST_ROUND_UP_16 (info->height);
+ thiz->param.mfx.FrameInfo.Width = GST_ROUND_UP_32 (info->width);
+ thiz->param.mfx.FrameInfo.Height = GST_ROUND_UP_32 (info->height);
thiz->param.mfx.FrameInfo.CropW = info->width;
thiz->param.mfx.FrameInfo.CropH = info->height;
thiz->param.mfx.FrameInfo.FrameRateExtN = info->fps_n;
@@ -224,9 +224,9 @@ gst_msdkenc_init_encoder (GstMsdkEnc * thiz)
sizeof (mfxFrameInfo));
}
if (GST_ROUND_UP_32 (info->width) != info->width
- || GST_ROUND_UP_2 (info->height) != info->height) {
+ || GST_ROUND_UP_32 (info->height) != info->height) {
guint width = GST_ROUND_UP_32 (info->width);
- guint height = GST_ROUND_UP_2 (info->height);
+ guint height = GST_ROUND_UP_32 (info->height);
gsize Y_size = width * height;
gsize size = Y_size + (Y_size >> 1);
for (i = 0; i < thiz->num_surfaces; i++) {