diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-30 00:25:31 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-30 00:50:43 +0100 |
commit | b80073c05f7ca1136d397a3875cafdda40d25667 (patch) | |
tree | 371b453550f83e9d03611ddfe5181f229375cbb9 /libavcodec/mjpegdec.c | |
parent | ed56c021e728fbf4e00143e10be250578aee4a61 (diff) | |
download | ffmpeg-b80073c05f7ca1136d397a3875cafdda40d25667.tar.gz |
avcodec/mjpegdec: use av_freep() instead of av_free()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r-- | libavcodec/mjpegdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 03ba620940..4430e750c9 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -2090,7 +2090,7 @@ av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx) } else if (s->picture_ptr) av_frame_unref(s->picture_ptr); - av_free(s->buffer); + av_freep(&s->buffer); av_freep(&s->stereo3d); av_freep(&s->ljpeg_buffer); s->ljpeg_buffer_size = 0; |