lavfi/yadif: remove redundant NULL checks in uninit

This commit is contained in:
Stefano Sabatini 2013-01-02 11:19:21 +01:00
parent 4ea7c17932
commit 8674597fe5

View File

@ -300,9 +300,9 @@ static av_cold void uninit(AVFilterContext *ctx)
{ {
YADIFContext *yadif = ctx->priv; YADIFContext *yadif = ctx->priv;
if (yadif->prev) avfilter_unref_bufferp(&yadif->prev); avfilter_unref_bufferp(&yadif->prev);
if (yadif->cur ) avfilter_unref_bufferp(&yadif->cur ); avfilter_unref_bufferp(&yadif->cur );
if (yadif->next) avfilter_unref_bufferp(&yadif->next); avfilter_unref_bufferp(&yadif->next);
av_freep(&yadif->temp_line); yadif->temp_line_size = 0; av_freep(&yadif->temp_line); yadif->temp_line_size = 0;
} }