[FFmpeg-devel] [PATCH 3/5] Simplify: just add header_size directly.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sun Jan 22 00:13:53 CET 2012
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
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;
--
1.7.8.3
More information about the ffmpeg-devel
mailing list