[MMFMWK-7942] correct NV12_10LE format offset and stride calculation upstream status: imx specific
diff --git a/gst-libs/gst/video/video-info.c b/gst-libs/gst/video/video-info.c index b244cfb..2340447 100644 --- a/gst-libs/gst/video/video-info.c +++ b/gst-libs/gst/video/video-info.c
@@ -1007,11 +1007,11 @@ info->size = info->offset[1] + info->stride[0] * cr_h; break; case GST_VIDEO_FORMAT_NV12_10LE: - info->stride[0] = GST_ROUND_UP_16 (width * 5 / 4); + info->stride[0] = GST_ROUND_UP_4 (width * 5 / 4); info->stride[1] = info->stride[0]; info->offset[0] = 0; - info->offset[1] = info->stride[0] * GST_ROUND_UP_16 (height); - cr_h = GST_ROUND_UP_16 (height) / 2; + info->offset[1] = info->stride[0] * GST_ROUND_UP_2 (height); + cr_h = GST_ROUND_UP_2 (height) / 2; info->size = info->offset[1] + info->stride[0] * cr_h; break;