From f4e8292eb7560730291172de14ced171b55638b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 29 Jan 2012 14:47:36 +0100 Subject: [PATCH] fraps: Add release_buffer forgotten when reget_buffer was removed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Reimar Döffinger --- libavcodec/fraps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index 4ee97835a1..99387b5eed 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -180,6 +180,8 @@ static int decode_frame(AVCodecContext *avctx, } } + if (s->frame.data[0]) + avctx->release_buffer(avctx, &s->frame); f->pict_type = AV_PICTURE_TYPE_I; f->key_frame = 1; f->reference = 0;