video: Fix NV12_16L32 size calculation

The subsampling of the second plane was not taken into account, resulting in a
16bit per pixel buffers instead of 12.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2512>
This commit is contained in:
Nicolas Dufresne 2022-05-27 14:18:30 -04:00 committed by GStreamer Marge Bot
parent 4cb935bcea
commit f1756493d2

View file

@ -1129,7 +1129,7 @@ fill_planes (GstVideoInfo * info, gsize plane_size[GST_VIDEO_MAX_PLANES])
info->offset[1] =
GST_ROUND_UP_N (width, 1 << ws) * GST_ROUND_UP_N (height, 1 << hs);
info->size = info->offset[1] + GST_ROUND_UP_N (width, 1 << ws) *
GST_ROUND_UP_N (height, 1 << (hs - 1));
GST_ROUND_UP_N (height, 1 << hs) / 2;
break;
}
case GST_VIDEO_FORMAT_A420_10LE: