avutil/tx: should check against (*ctx)
authorRuiling Song <ruiling.song@intel.com>
Thu, 16 May 2019 04:47:36 +0000 (12:47 +0800)
committerJames Almer <jamrial@gmail.com>
Thu, 16 May 2019 21:25:31 +0000 (18:25 -0300)
ctx is a pointer to pointer here.

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
libavutil/tx.c

index a138c67..93f6e48 100644 (file)
@@ -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);