deinterlace: Fix vfir 16-bit orc calculations

memcpy works in bytes, but orc works in items, so given that the size
arguments is in bytes, we need to divide by the pixel stride.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5172>
This commit is contained in:
Vivia Nikolaidou 2023-08-11 11:59:42 +03:00 committed by GStreamer Marge Bot
parent 6145a5c7cb
commit 3257ee4374

View file

@ -81,10 +81,10 @@ deinterlace_c_16bits (guint16 * dst, const guint16 * lum_m4,
const guint16 * lum, gint size)
{
if (lum_m2 == NULL) {
deinterlace_line_linear_16bits (dst, lum_m1, lum_m3, size);
deinterlace_line_linear_16bits (dst, lum_m1, lum_m3, size / 2);
} else {
deinterlace_line_vfir_16bits (dst, lum_m4, lum_m3, lum_m2, lum_m1,
lum, size);
lum, size / 2);
}
}