summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/fraps.c4
1 files changed, 1 insertions, 3 deletions
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;