diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-12-23 11:39:41 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-12-23 11:39:41 +0100 |
commit | 8e88145d0b43a4572c1c13431c4f7ba644547c80 (patch) | |
tree | 121052abe02276bb089a717f8dc25e84342674c4 /libavcodec/svq1enc.c | |
parent | e5de9289232c5b14572fa13e2435f9adb0b0f1ec (diff) | |
download | ffmpeg-streaming-8e88145d0b43a4572c1c13431c4f7ba644547c80.zip ffmpeg-streaming-8e88145d0b43a4572c1c13431c4f7ba644547c80.tar.gz |
Release buffers after encoding svq1.
Fixes ticket #820.
Diffstat (limited to 'libavcodec/svq1enc.c')
-rw-r--r-- | libavcodec/svq1enc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c index 9e6111a..feceaee 100644 --- a/libavcodec/svq1enc.c +++ b/libavcodec/svq1enc.c @@ -563,6 +563,10 @@ static av_cold int svq1_encode_end(AVCodecContext *avctx) av_freep(&s->motion_val8[i]); av_freep(&s->motion_val16[i]); } + if(s->current_picture.data[0]) + avctx->release_buffer(avctx, &s->current_picture); + if(s->last_picture.data[0]) + avctx->release_buffer(avctx, &s->last_picture); return 0; } |