correct quantizer bias
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 3 May 2002 21:38:02 +0000 (21:38 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 3 May 2002 21:38:02 +0000 (21:38 +0000)
Originally committed as revision 438 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mjpeg.c

index 30478395ab38e7f84688b8bda57abedce58c009f..4f5f3a1c9aa6bfdb3d505d5221f3c00cb14878e7 100644 (file)
@@ -245,6 +245,7 @@ int mjpeg_init(MpegEncContext *s)
     
     s->min_qcoeff=-1023;
     s->max_qcoeff= 1023;
+    s->intra_quant_bias= 1<<(QUANT_BIAS_SHIFT-1); //(a + x/2)/x
 
     /* build all the huffman tables */
     build_huffman_codes(m->huff_size_dc_luminance,