aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-07-23 22:20:31 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-07-23 22:44:25 +0200
commitddcb99bb51513ef1f5e5f48d3dd3403da4608d10 (patch)
tree894d71cbc3e79d67cfe9cb0c9b8369eda7d5fcfa
parent6d4c97bb85b27f129b59b1bf75a1812eecb2a4c7 (diff)
downloadffmpeg-ddcb99bb51513ef1f5e5f48d3dd3403da4608d10.tar.gz
vf_deshake: set cur_buf to NULL.
Fix a segfault.
-rw-r--r--libavfilter/vf_deshake.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index 0a1d865e56..d03671c453 100644
--- a/libavfilter/vf_deshake.c
+++ b/libavfilter/vf_deshake.c
@@ -435,6 +435,7 @@ static int end_frame(AVFilterLink *link)
float alpha = 2.0 / deshake->refcount;
char tmp[256];
+ link->cur_buf = NULL; /* it is in 'in' now */
if (deshake->cx < 0 || deshake->cy < 0 || deshake->cw < 0 || deshake->ch < 0) {
// Find the most likely global motion for the current frame
find_motion(deshake, (deshake->ref == NULL) ? in->data[0] : deshake->ref->data[0], in->data[0], link->w, link->h, in->linesize[0], &t);