[FFmpeg-cvslog] Simplify: just add header_size directly.
Reimar Döffinger
git at videolan.org
Sun Jan 22 14:42:01 CET 2012
ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sat Jan 21 23:59:08 2012 +0100| [57608d90295fa42f81038e4969354bb487a3072b] | committer: Reimar Döffinger
Simplify: just add header_size directly.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=57608d90295fa42f81038e4969354bb487a3072b
---
libavcodec/fraps.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index 2f5f1ac..137629d 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;
More information about the ffmpeg-cvslog
mailing list