diff mjpeg.c @ 357:ae179ec5fb47 libavcodec

correct quantizer bias
author michaelni
date Fri, 03 May 2002 21:38:02 +0000
parents 167aa21aa250
children c60869851bb4
line wrap: on
line diff
--- a/mjpeg.c	Fri May 03 18:46:55 2002 +0000
+++ b/mjpeg.c	Fri May 03 21:38:02 2002 +0000
@@ -245,6 +245,7 @@
     
     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,