summaryrefslogtreecommitdiff
path: root/libavfilter/vf_deshake.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-12-06 16:14:38 +0100
committerClément Bœsch <ubitux@gmail.com>2012-12-06 16:20:31 +0100
commit0678641b7cffe63273683f589523ade98472687b (patch)
tree89a36d5f5a4afdd58222ed6f1766b8628a2111fb /libavfilter/vf_deshake.c
parente7b0e83e965e3881e0586d688c18741312f57256 (diff)
lavfi/deshake: remove unecessary check before unref.
Diffstat (limited to 'libavfilter/vf_deshake.c')
-rw-r--r--libavfilter/vf_deshake.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index 5c562eb2b4..68d72673ae 100644
--- a/libavfilter/vf_deshake.c
+++ b/libavfilter/vf_deshake.c
@@ -530,8 +530,7 @@ static int filter_frame(AVFilterLink *link, AVFilterBufferRef *in)
// Store the current frame as the reference frame for calculating the
// motion of the next frame
- if (deshake->ref != NULL)
- avfilter_unref_buffer(deshake->ref);
+ avfilter_unref_buffer(deshake->ref);
// Cleanup the old reference frame
deshake->ref = in;