Commit c9f13298 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

video-scaler: Correctly handle interlaced vertical scalers in gst_video_scaler_2d()

We need to provide twice as many lines as usual to the scaling function
as every second lines would be skipped.

Without this we read from random memory and produce colorful output and
parent 255beae3
......@@ -1491,6 +1491,9 @@ gst_video_scaler_2d (GstVideoScaler * hscale, GstVideoScaler * vscale,
realloc_tmplines (vscale, n_elems, width);
v_taps = vscale->resampler.max_taps;
v_taps *= 2;
lines = g_alloca (v_taps * sizeof (gpointer));
if (hscale == NULL) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment