changeset 357:ae179ec5fb47 libavcodec

correct quantizer bias
author michaelni
date Fri, 03 May 2002 21:38:02 +0000
parents e8ecb4413557
children 2066dc543be4
files mjpeg.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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,