diff options
author | Arpi <arpi@thot.banki.hu> | 2002-02-09 01:25:06 +0000 |
---|---|---|
committer | Arpi <arpi@thot.banki.hu> | 2002-02-09 01:25:06 +0000 |
commit | 3cb32e3d1fb6c058bf6b3ce45d5e758a4608c847 (patch) | |
tree | 2d3bed91a15e3282ce154fca3199d7c74cf5e1e2 /libavcodec | |
parent | 80e103d04cf938fc1f479347d0ab2f8c6e688b61 (diff) | |
download | ffmpeg-3cb32e3d1fb6c058bf6b3ce45d5e758a4608c847.tar.gz |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/i386/mpegvideo_mmx_template.c | 4 | ||||
-rw-r--r-- | libavcodec/mpegvideo.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/i386/mpegvideo_mmx_template.c b/libavcodec/i386/mpegvideo_mmx_template.c index ffe5c848af..2b33229159 100644 --- a/libavcodec/i386/mpegvideo_mmx_template.c +++ b/libavcodec/i386/mpegvideo_mmx_template.c @@ -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; diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index f43588cf45..72b8058a22 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -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; |