From 3469c8880453f9020cec6e18247f71d680588bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 29 Jan 2012 14:50:58 +0100 Subject: [PATCH] fraps: Minor simplification, use local variable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Reimar Döffinger --- libavcodec/fraps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index 27df547504..bfbf47a220 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -181,8 +181,8 @@ static int decode_frame(AVCodecContext *avctx, } } - if (s->frame.data[0]) - avctx->release_buffer(avctx, &s->frame); + if (f->data[0]) + avctx->release_buffer(avctx, f); f->pict_type = AV_PICTURE_TYPE_I; f->key_frame = 1; f->reference = 0;