mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
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>
This commit is contained in:
parent
e4fa15d156
commit
7f6004fc74
@ -433,11 +433,10 @@ static void end_frame(AVFilterLink *link)
|
|||||||
DeshakeContext *deshake = link->dst->priv;
|
DeshakeContext *deshake = link->dst->priv;
|
||||||
AVFilterBufferRef *in = link->cur_buf;
|
AVFilterBufferRef *in = link->cur_buf;
|
||||||
AVFilterBufferRef *out = link->dst->outputs[0]->out_buf;
|
AVFilterBufferRef *out = link->dst->outputs[0]->out_buf;
|
||||||
Transform t;
|
Transform t = {{0},0}, orig = {{0},0};
|
||||||
float matrix[9];
|
float matrix[9];
|
||||||
float alpha = 2.0 / deshake->refcount;
|
float alpha = 2.0 / deshake->refcount;
|
||||||
char tmp[256];
|
char tmp[256];
|
||||||
Transform orig;
|
|
||||||
|
|
||||||
if (deshake->cx < 0 || deshake->cy < 0 || deshake->cw < 0 || deshake->ch < 0) {
|
if (deshake->cx < 0 || deshake->cy < 0 || deshake->cw < 0 || deshake->ch < 0) {
|
||||||
// Find the most likely global motion for the current frame
|
// Find the most likely global motion for the current frame
|
||||||
|
Loading…
x
Reference in New Issue
Block a user