lavfi/tinterlace: drop redundant NULL checks in uninit()
authorStefano Sabatini <stefasab@gmail.com>
Thu, 6 Dec 2012 21:18:24 +0000 (22:18 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Thu, 6 Dec 2012 21:32:03 +0000 (22:32 +0100)
libavfilter/vf_tinterlace.c

index e0ba11a..496576d 100644 (file)
@@ -106,8 +106,8 @@ static av_cold void uninit(AVFilterContext *ctx)
 {
     TInterlaceContext *tinterlace = ctx->priv;
 
-    if (tinterlace->cur ) avfilter_unref_bufferp(&tinterlace->cur );
-    if (tinterlace->next) avfilter_unref_bufferp(&tinterlace->next);
+    avfilter_unref_bufferp(&tinterlace->cur );
+    avfilter_unref_bufferp(&tinterlace->next);
 
     av_opt_free(tinterlace);
     av_freep(&tinterlace->black_data[0]);