Count non-header data towards intra block bit count in MJPEG encoder
authorBobby Bingham <uhmmmm@gmail.com>
Sat, 4 Dec 2010 05:21:03 +0000 (05:21 +0000)
committerBobby Bingham <uhmmmm@gmail.com>
Sat, 4 Dec 2010 05:21:03 +0000 (05:21 +0000)
Originally committed as revision 25873 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mjpegenc.c

index ec819c8..05f0bed 100644 (file)
@@ -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 = {