bayer2rgb: Fix RGB stride calculation

This fixes a regression introduced in 4c92d4096e9.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9146>
This commit is contained in:
Sebastian Dröge 2025-05-30 12:33:09 +03:00 committed by GStreamer Marge Bot
parent 2a0c77fb78
commit da892230d8

View File

@ -396,7 +396,7 @@ gst_bayer2rgb_get_unit_size (GstBaseTransform * base, GstCaps * caps,
return TRUE;
} else {
/* For output, calculate according to format */
*size = width * height * DIV_ROUND_UP (bayer2rgb->bpp, 8);
*size = width * height * 4 * DIV_ROUND_UP (bayer2rgb->bpp, 8);
return TRUE;
}