Commit 8e611203 authored by arpi_esp's avatar arpi_esp

PATCH by Rik Snel <rsnel@cube.dyndns.org>

this includes the range for quantized dct coefficients in dct_quantize()  (-1023...1023)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@291 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b37cabb4
......@@ -48,6 +48,10 @@ static int RENAME(dct_quantize)(MpegEncContext *s,
/* mpeg1 */
minLevel= -255;
maxLevel= 255;
}else if(s->out_format==FMT_MJPEG){
/* (m)jpeg */
minLevel= -1023;
maxLevel= 1023;
}else{
/* h263 / msmpeg4 */
minLevel= -128;
......
......@@ -1079,6 +1079,10 @@ static int dct_quantize_c(MpegEncContext *s,
/* mpeg1 */
minLevel= -255;
maxLevel= 255;
}else if(s->out_format==FMT_MJPEG){
/* (m)jpeg */
minLevel= -1023;
maxLevel= 1023;
}else{
/* h263 / msmpeg4 */
minLevel= -128;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment