From 8674597fe53179538a27093e12fc81ed9f84e017 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Wed, 2 Jan 2013 11:19:21 +0100 Subject: [PATCH] lavfi/yadif: remove redundant NULL checks in uninit --- 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 ed2ffd5968..040c6230f9 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; }