aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-05-03 21:38:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-05-03 21:38:02 +0000
commit1c3a2382d04168a233657c9ce79b9913d927bc0f (patch)
treeed59b459cde913f3afb20299c507c06c45fa48bc /libavcodec/mjpeg.c
parent0f9400b4fbcb374338892c6a6cf5df44a0022729 (diff)
downloadffmpeg-1c3a2382d04168a233657c9ce79b9913d927bc0f.tar.gz
correct quantizer bias
Originally committed as revision 438 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpeg.c')
-rw-r--r--libavcodec/mjpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c
index 30478395ab..4f5f3a1c9a 100644
--- a/libavcodec/mjpeg.c
+++ b/libavcodec/mjpeg.c
@@ -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,