From 588fdeb8349cf5fbb37e63f403c5559071283c07 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 19 Nov 2014 09:39:32 +0100 Subject: [PATCH] video-scaler: fix interlaced shift --- gst-libs/gst/video/video-scaler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/video/video-scaler.c b/gst-libs/gst/video/video-scaler.c index d0ed06b63e..922fac0cc4 100644 --- a/gst-libs/gst/video/video-scaler.c +++ b/gst-libs/gst/video/video-scaler.c @@ -185,10 +185,10 @@ gst_video_scaler_new (GstVideoResamplerMethod method, GstVideoScalerFlags flags, GstVideoResampler tresamp, bresamp; gst_video_resampler_init (&tresamp, method, 0, (out_size + 1) / 2, n_taps, - 0.0, (in_size + 1) / 2, (out_size + 1) / 2, options); + -0.5, (in_size + 1) / 2, (out_size + 1) / 2, options); gst_video_resampler_init (&bresamp, method, 0, out_size - tresamp.out_size, - n_taps, -0.5, in_size - tresamp.in_size, + n_taps, 0.5, in_size - tresamp.in_size, out_size - tresamp.out_size, options); resampler_zip (&scale->resampler, &tresamp, &bresamp);