mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
video-scaler: ensure both fields have the same number of taps
This commit is contained in:
parent
eefdba6dbd
commit
1a3e8395bb
1 changed files with 2 additions and 0 deletions
|
@ -187,6 +187,8 @@ gst_video_scaler_new (GstVideoResamplerMethod method, GstVideoScalerFlags flags,
|
|||
gst_video_resampler_init (&tresamp, method, 0, (out_size + 1) / 2, n_taps,
|
||||
-0.5, (in_size + 1) / 2, (out_size + 1) / 2, options);
|
||||
|
||||
n_taps = tresamp.max_taps;
|
||||
|
||||
gst_video_resampler_init (&bresamp, method, 0, out_size - tresamp.out_size,
|
||||
n_taps, 0.5, in_size - tresamp.in_size,
|
||||
out_size - tresamp.out_size, options);
|
||||
|
|
Loading…
Reference in a new issue