[FFmpeg-cvslog] avcodec/ac3dec: use av_freep() for saftey
Michael Niedermayer
git at videolan.org
Wed Apr 2 05:27:40 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 2 04:37:33 2014 +0200| [c00f368caab72f7fa1195a8854e95c3d9597776a] | committer: Michael Niedermayer
avcodec/ac3dec: use av_freep() for saftey
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c00f368caab72f7fa1195a8854e95c3d9597776a
---
libavcodec/ac3dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index e75be7e..c8c4eb6 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1609,7 +1609,7 @@ static av_cold int ac3_decode_end(AVCodecContext *avctx)
ff_mdct_end(&s->imdct_512);
ff_mdct_end(&s->imdct_256);
#if (USE_FIXED)
- av_free(s->fdsp);
+ av_freep(&s->fdsp);
#endif
return 0;
More information about the ffmpeg-cvslog
mailing list