summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-01-21 23:59:08 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-01-22 14:41:15 +0100
commit57608d90295fa42f81038e4969354bb487a3072b (patch)
tree5d35a1f3cc6d3c9d6a007bb5b13c68efc2de8f3f /libavcodec
parentb09c93d7bc2271ba164c7025be5823439c4784d1 (diff)
Simplify: just add header_size directly.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec')
-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;