diff options
author | Ray Simard <rhs.ffmpeg@sylvan-glade.com> | 2012-01-13 05:21:06 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-01-13 19:59:50 +0400 |
commit | 7f6004fc7466c2ce975894446f4b13ca6c3779a0 (patch) | |
tree | 10a8c2ef41d197dfa85c4019a3ff11ac7aadb576 /libavfilter | |
parent | e4fa15d15618ea3c0786eccde08f5c12a65e8fa4 (diff) |
vf_deshake: zero-init Transform structs in end_frame()
Initialize Transform structs t and orig to zero.
Signed-off-by: Ray Simard <rhs.ffmpeg@sylvan-glade.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | 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 c2d8f9208e..1464147ada 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 |