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

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

Originally committed as revision 291 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Arpi 2002-02-09 01:25:06 +00:00
parent 80e103d04c
commit 3cb32e3d1f
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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;