]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/atrac9dec: Replace av_free() by av_freep() in close function
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 5 Nov 2020 02:51:50 +0000 (03:51 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 24 Nov 2020 10:35:03 +0000 (11:35 +0100)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/atrac9dec.c

index 0477b304d25ded9972c60f5a3fcc181d6782854b..a7de037b2cfa1f4077dc8b6b659ab4ea24f2ee1a 100644 (file)
@@ -838,7 +838,7 @@ static av_cold int atrac9_decode_close(AVCodecContext *avctx)
                 ff_free_vlc(&s->coeff_vlc[i][j][k]);
 
     ff_mdct_end(&s->imdct);
-    av_free(s->fdsp);
+    av_freep(&s->fdsp);
 
     return 0;
 }