Simplify: just add header_size directly.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
release/0.10
Reimar Döffinger 13 years ago
parent b09c93d7bc
commit 57608d9029
  1. 4
      libavcodec/fraps.c

@ -153,9 +153,7 @@ static int decode_frame(AVCodecContext *avctx,
return -1; return -1;
} }
buf+=4; buf += header_size;
if (header_size == 8)
buf+=4;
f->pict_type = AV_PICTURE_TYPE_I; f->pict_type = AV_PICTURE_TYPE_I;
f->key_frame = 1; f->key_frame = 1;

Loading…
Cancel
Save