mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
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:
parent
6145a5c7cb
commit
3257ee4374
1 changed files with 2 additions and 2 deletions
|
@ -81,10 +81,10 @@ deinterlace_c_16bits (guint16 * dst, const guint16 * lum_m4,
|
||||||
const guint16 * lum, gint size)
|
const guint16 * lum, gint size)
|
||||||
{
|
{
|
||||||
if (lum_m2 == NULL) {
|
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 {
|
} else {
|
||||||
deinterlace_line_vfir_16bits (dst, lum_m4, lum_m3, lum_m2, lum_m1,
|
deinterlace_line_vfir_16bits (dst, lum_m4, lum_m3, lum_m2, lum_m1,
|
||||||
lum, size);
|
lum, size / 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue