mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
aa645b11f1
commit
d8308d5a8f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue