[FFmpeg-cvslog] lavfi/yadif: remove redundant NULL checks in uninit

Stefano Sabatini git at videolan.org
Fri Jan 4 11:52:02 CET 2013


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Jan  2 11:19:21 2013 +0100| [8674597fe53179538a27093e12fc81ed9f84e017] | committer: Stefano Sabatini

lavfi/yadif: remove redundant NULL checks in uninit

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8674597fe53179538a27093e12fc81ed9f84e017
---

 libavfilter/vf_yadif.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index ed2ffd5..040c623 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -300,9 +300,9 @@ static av_cold void uninit(AVFilterContext *ctx)
 {
     YADIFContext *yadif = ctx->priv;
 
-    if (yadif->prev) avfilter_unref_bufferp(&yadif->prev);
-    if (yadif->cur ) avfilter_unref_bufferp(&yadif->cur );
-    if (yadif->next) avfilter_unref_bufferp(&yadif->next);
+    avfilter_unref_bufferp(&yadif->prev);
+    avfilter_unref_bufferp(&yadif->cur );
+    avfilter_unref_bufferp(&yadif->next);
     av_freep(&yadif->temp_line); yadif->temp_line_size = 0;
 }
 



More information about the ffmpeg-cvslog mailing list