mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
video-scaler: fix interlaced taps setup
This commit is contained in:
parent
c98bc6fdc6
commit
d03bad7761
1 changed files with 1 additions and 2 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue