From 57608d90295fa42f81038e4969354bb487a3072b Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sat, 21 Jan 2012 23:59:08 +0100 Subject: Simplify: just add header_size directly. 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, 1 insertion(+), 3 deletions(-) (limited to 'libavcodec') diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index 2f5f1ac0f1..137629d4ed 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -153,9 +153,7 @@ static int decode_frame(AVCodecContext *avctx, return -1; } - buf+=4; - if (header_size == 8) - buf+=4; + buf += header_size; f->pict_type = AV_PICTURE_TYPE_I; f->key_frame = 1; -- cgit v1.2.3