Browse Source

correct quantizer bias

Originally committed as revision 438 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 23 years ago
parent
commit
1c3a2382d0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/mjpeg.c

+ 1
- 0
libavcodec/mjpeg.c View File

@@ -245,6 +245,7 @@ int mjpeg_init(MpegEncContext *s)
s->min_qcoeff=-1023; s->min_qcoeff=-1023;
s->max_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 all the huffman tables */
build_huffman_codes(m->huff_size_dc_luminance, build_huffman_codes(m->huff_size_dc_luminance,


Loading…
Cancel
Save