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

Stefano Sabatini stefasab at gmail.com
Wed Jan 2 17:20:51 CET 2013


---
 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;
 }
 
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list