From 23b8342af413c447ef9c4c0e0f645833b96fd1bf Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sat, 4 Dec 2010 05:21:03 +0000 Subject: [PATCH] Count non-header data towards intra block bit count in MJPEG encoder Originally committed as revision 25873 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mjpegenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index ec819c800a..05f0bed35d 100644 --- a/libavcodec/mjpegenc.c +++ b/libavcodec/mjpegenc.c @@ -441,6 +441,8 @@ void ff_mjpeg_encode_mb(MpegEncContext *s, DCTELEM block[6][64]) encode_block(s, block[5], 5); encode_block(s, block[7], 7); } + + s->i_tex_bits += get_bits_diff(s); } AVCodec mjpeg_encoder = {