[FFmpeg-cvslog] vf_deshake: zero-init Transform structs in end_frame()
Ray Simard
git at videolan.org
Fri Jan 13 17:01:37 CET 2012
ffmpeg | branch: master | Ray Simard <rhs.ffmpeg at sylvan-glade.com> | Thu Jan 12 17:21:06 2012 -0800| [7f6004fc7466c2ce975894446f4b13ca6c3779a0] | committer: Stefano Sabatini
vf_deshake: zero-init Transform structs in end_frame()
Initialize Transform structs t and orig to zero.
Signed-off-by: Ray Simard <rhs.ffmpeg at sylvan-glade.com>
Signed-off-by: Stefano Sabatini <stefasab at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7f6004fc7466c2ce975894446f4b13ca6c3779a0
---
libavfilter/vf_deshake.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index c2d8f92..1464147 100644
--- a/libavfilter/vf_deshake.c
+++ b/libavfilter/vf_deshake.c
@@ -433,11 +433,10 @@ static void end_frame(AVFilterLink *link)
DeshakeContext *deshake = link->dst->priv;
AVFilterBufferRef *in = link->cur_buf;
AVFilterBufferRef *out = link->dst->outputs[0]->out_buf;
- Transform t;
+ Transform t = {{0},0}, orig = {{0},0};
float matrix[9];
float alpha = 2.0 / deshake->refcount;
char tmp[256];
- Transform orig;
if (deshake->cx < 0 || deshake->cy < 0 || deshake->cw < 0 || deshake->ch < 0) {
// Find the most likely global motion for the current frame
More information about the ffmpeg-cvslog
mailing list