diff options
author | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-10-16 14:50:08 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-10-16 14:50:08 +0000 |
commit | 0b7f39c9d425db649f14cbc927fbce5cdc20828f (patch) | |
tree | 29b24b9d1eb5aa1780c40023c2b8d97dc6a6bf12 /libavcodec/mjpegdec.c | |
parent | bc2d2a07d5bf1b6d13b16e106413c7e62979dcc1 (diff) | |
download | ffmpeg-0b7f39c9d425db649f14cbc927fbce5cdc20828f.tar.gz |
Release unreleased buffers found by make test.
Originally committed as revision 20251 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r-- | libavcodec/mjpegdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index e8f0dd6032..5e55614eef 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -1494,6 +1494,9 @@ av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx) MJpegDecodeContext *s = avctx->priv_data; int i, j; + if (s->picture.data[0]) + avctx->release_buffer(avctx, &s->picture); + av_free(s->buffer); av_free(s->qscale_table); |