video-resampler: make sure params.envelope is initialized

In gst_video_resampler_init () if method is GST_VIDEO_RESAMPLER_METHOD_NEAREST
then params.envelope is not initialized but still used later in line 382.
Make sure this variable is initiliazed to avoid undefined behaviour.

CID #1256568
This commit is contained in:
Luis de Bethencourt 2015-02-04 11:25:54 +00:00
parent aa645b11f1
commit d8308d5a8f

View file

@ -348,6 +348,7 @@ gst_video_resampler_init (GstVideoResampler * resampler,
switch (method) {
case GST_VIDEO_RESAMPLER_METHOD_NEAREST:
params.envelope = GET_OPT_ENVELOPE (options);
params.get_tap = get_nearest_tap;
if (n_taps == 0)
n_taps = 1;