mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
video-scaler: enforce same taps when combining scalers
This commit is contained in:
parent
1fbbff491a
commit
b31c805a56
1 changed files with 3 additions and 1 deletions
|
@ -1110,6 +1110,8 @@ gst_video_scaler_combine_packed_YUV (GstVideoScaler * y_scale,
|
|||
|
||||
g_return_val_if_fail (y_scale != NULL, NULL);
|
||||
g_return_val_if_fail (uv_scale != NULL, NULL);
|
||||
g_return_val_if_fail (uv_scale->resampler.max_taps ==
|
||||
y_scale->resampler.max_taps, NULL);
|
||||
|
||||
scale = g_slice_new0 (GstVideoScaler);
|
||||
|
||||
|
@ -1120,7 +1122,7 @@ gst_video_scaler_combine_packed_YUV (GstVideoScaler * y_scale,
|
|||
resampler = &scale->resampler;
|
||||
|
||||
out_size = y_scale->resampler.out_size * 2;
|
||||
max_taps = MAX (y_scale->resampler.max_taps, uv_scale->resampler.max_taps);
|
||||
max_taps = y_scale->resampler.max_taps;
|
||||
n_phases = out_size;
|
||||
offset = g_malloc (sizeof (guint32) * out_size);
|
||||
phase = g_malloc (sizeof (guint32) * n_phases);
|
||||
|
|
Loading…
Reference in a new issue