aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-30 00:25:31 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-30 00:50:43 +0100
commitb80073c05f7ca1136d397a3875cafdda40d25667 (patch)
tree371b453550f83e9d03611ddfe5181f229375cbb9
parented56c021e728fbf4e00143e10be250578aee4a61 (diff)
downloadffmpeg-b80073c05f7ca1136d397a3875cafdda40d25667.tar.gz
avcodec/mjpegdec: use av_freep() instead of av_free()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mjpegdec.c2
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;