[FFmpeg-cvslog] lavfi/deshake: remove unecessary check before unref.
Clément Bœsch
git at videolan.org
Thu Dec 6 16:20:47 CET 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Dec 6 16:14:38 2012 +0100| [0678641b7cffe63273683f589523ade98472687b] | committer: Clément Bœsch
lavfi/deshake: remove unecessary check before unref.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0678641b7cffe63273683f589523ade98472687b
---
libavfilter/vf_deshake.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index 5c562eb..68d7267 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;
More information about the ffmpeg-cvslog
mailing list