[FFmpeg-cvslog] avcodec/mjpegdec: use av_freep() instead of av_free()
Michael Niedermayer
git at videolan.org
Thu Jan 30 00:51:37 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jan 30 00:25:31 2014 +0100| [b80073c05f7ca1136d397a3875cafdda40d25667] | committer: Michael Niedermayer
avcodec/mjpegdec: use av_freep() instead of av_free()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b80073c05f7ca1136d397a3875cafdda40d25667
---
libavcodec/mjpegdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 03ba620..4430e75 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;
More information about the ffmpeg-cvslog
mailing list