video-scaler: fix interlaced taps setup

This commit is contained in:
Wim Taymans 2014-11-18 11:06:20 +01:00
parent c98bc6fdc6
commit d03bad7761

View file

@ -303,8 +303,6 @@ make_s16_taps (GstVideoScaler * scale, gint precision)
else
src_inc = 1;
max_taps /= src_inc;
taps = scale->resampler.taps;
taps_s16 = scale->taps_s16 = g_malloc (sizeof (gint16) * n_phases * max_taps);
@ -326,6 +324,7 @@ make_s16_taps (GstVideoScaler * scale, gint precision)
offset_n = scale->offset_n =
g_malloc (sizeof (guint32) * out_size * max_taps);
max_taps /= src_inc;
for (j = 0; j < max_taps; j++) {
for (i = 0; i < out_size; i++) {