From 65646db8e8d5aa95ef8282823fdf5ec1a5f3df69 Mon Sep 17 00:00:00 2001
From: Ruiling Song <ruiling.song@intel.com>
Date: Thu, 16 May 2019 12:47:36 +0800
Subject: [PATCH] avutil/tx: should check against (*ctx)

ctx is a pointer to pointer here.

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
---
 libavutil/tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/tx.c b/libavutil/tx.c
index a138c67bdc..93f6e489d3 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -697,7 +697,7 @@ static int gen_mdct_exptab(AVTXContext *s, int len4, double scale)
 
 av_cold void av_tx_uninit(AVTXContext **ctx)
 {
-    if (!ctx)
+    if (!(*ctx))
         return;
 
     av_free((*ctx)->pfatab);