mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
80e103d04c
commit
3cb32e3d1f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue