mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
video-scaler: fix interlaced shift
This commit is contained in:
parent
ac756ba0d9
commit
588fdeb834
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue