[FFmpeg-cvslog] avutil/tx: should check against (*ctx)

Ruiling Song git at videolan.org
Fri May 17 00:26:05 EEST 2019


ffmpeg | branch: master | Ruiling Song <ruiling.song at intel.com> | Thu May 16 12:47:36 2019 +0800| [65646db8e8d5aa95ef8282823fdf5ec1a5f3df69] | committer: James Almer

avutil/tx: should check against (*ctx)

ctx is a pointer to pointer here.

Signed-off-by: Ruiling Song <ruiling.song at intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=65646db8e8d5aa95ef8282823fdf5ec1a5f3df69
---

 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);



More information about the ffmpeg-cvslog mailing list