mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-01 17:53:52 +00:00
gaudi: don't run gaussian function if sigma is 0
This commit is contained in:
parent
86a503a29b
commit
e5d62b073b
1 changed files with 2 additions and 1 deletions
|
@ -249,7 +249,8 @@ gst_gaussianblur_transform_frame (GstVideoFilter * vfilter,
|
||||||
src = GST_VIDEO_FRAME_COMP_DATA (in_frame, 0);
|
src = GST_VIDEO_FRAME_COMP_DATA (in_frame, 0);
|
||||||
dest = GST_VIDEO_FRAME_COMP_DATA (out_frame, 0);
|
dest = GST_VIDEO_FRAME_COMP_DATA (out_frame, 0);
|
||||||
gst_video_frame_copy (out_frame, in_frame);
|
gst_video_frame_copy (out_frame, in_frame);
|
||||||
gaussian_smooth (filter, src, dest);
|
if (filter->sigma != 0.0)
|
||||||
|
gaussian_smooth (filter, src, dest);
|
||||||
|
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue