video-scaler: fix interlaced shift

This commit is contained in:
Wim Taymans 2014-11-19 09:39:32 +01:00
parent ac756ba0d9
commit 588fdeb834

View file

@ -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);