mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
4cb935bcea
commit
f1756493d2
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue