1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Release buffers after encoding svq1.

Fixes ticket #820.
This commit is contained in:
Carl Eugen Hoyos 2011-12-23 11:39:41 +01:00
parent e5de928923
commit 8e88145d0b

View File

@ -563,6 +563,10 @@ static av_cold int svq1_encode_end(AVCodecContext *avctx)
av_freep(&s->motion_val8[i]); av_freep(&s->motion_val8[i]);
av_freep(&s->motion_val16[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; return 0;
} }