[FFmpeg-cvslog] lavfi/vf_deshake_opencl: Avoid propagating uninitialised data
Mark Thompson
git at videolan.org
Sun Feb 9 22:37:28 EET 2020
ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Sun Sep 29 17:46:03 2019 +0100| [f130b221196cf82e19be78aa810125a41eb340fc] | committer: Mark Thompson
lavfi/vf_deshake_opencl: Avoid propagating uninitialised data
Fixes CID 1452753.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f130b221196cf82e19be78aa810125a41eb340fc
---
libavfilter/vf_deshake_opencl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/vf_deshake_opencl.c b/libavfilter/vf_deshake_opencl.c
index c914a77d83..0ef015808f 100644
--- a/libavfilter/vf_deshake_opencl.c
+++ b/libavfilter/vf_deshake_opencl.c
@@ -757,6 +757,8 @@ static FrameDelta decompose_transform(double *model)
double f = model[5];
double delta = a * d - b * c;
+ memset(&ret, 0, sizeof(ret));
+
ret.translation.s[0] = e;
ret.translation.s[1] = f;
More information about the ffmpeg-cvslog
mailing list