diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-09-01 23:36:29 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-09-02 19:20:28 +0200 |
commit | 4ea8406e38112bc374367386966d3a4c7357916c (patch) | |
tree | 533e8d26e8469ba176c44a289011c879edcb66ad /libavfilter/deshake.h | |
parent | 3980ab12b728fb8e14fc3a54dcd4336336a25422 (diff) | |
download | ffmpeg-4ea8406e38112bc374367386966d3a4c7357916c.tar.gz |
vf_deshake: reduce stack usage.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavfilter/deshake.h')
-rw-r--r-- | libavfilter/deshake.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/deshake.h b/libavfilter/deshake.h index f61ed80d53..20df88f4ec 100644 --- a/libavfilter/deshake.h +++ b/libavfilter/deshake.h @@ -71,8 +71,11 @@ typedef struct { #endif +#define MAX_R 64 + typedef struct { const AVClass *class; + int counts[2*MAX_R+1][2*MAX_R+1]; /// < Scratch buffer for motion search AVFrame *ref; ///< Previous frame int rx; ///< Maximum horizontal shift int ry; ///< Maximum vertical shift |