diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-22 02:59:08 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-22 17:41:15 +0400 |
commit | 57608d90295fa42f81038e4969354bb487a3072b (patch) | |
tree | 5d35a1f3cc6d3c9d6a007bb5b13c68efc2de8f3f /libavcodec/fraps.c | |
parent | b09c93d7bc2271ba164c7025be5823439c4784d1 (diff) |
Simplify: just add header_size directly.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r-- | libavcodec/fraps.c | 4 |
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; |