23 Jul 2012 22:21
[PATCH] vf_deshake: set cur_buf to NULL.
Nicolas George <nicolas.george <at> normalesup.org>
2012-07-23 20:21:33 GMT
2012-07-23 20:21:33 GMT
Fix a segfault.
Signed-off-by: Nicolas George <nicolas.george <at> normalesup.org>
---
libavfilter/vf_deshake.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index 0a1d865..d03671c 100644
--- a/libavfilter/vf_deshake.c
+++ b/libavfilter/vf_deshake.c
<at> <at> -435,6 +435,7 <at> <at> 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);
--
--
1.7.10.4
RSS Feed