diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-09-01 16:52:33 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-09-01 16:52:33 +0000 |
commit | ad324c93515ca4acb43f5973ba67861213ff584d (patch) | |
tree | a542e7b37f7a8a4283a28959258b68196b38c783 /libavcodec/fdctref.c | |
parent | 6b791538b90b95624e4d7b30743b409f3ee64997 (diff) | |
download | ffmpeg-ad324c93515ca4acb43f5973ba67861213ff584d.tar.gz |
dct cleanup
more accurate mmx dct (dont discard bits for fun)
fixing mmx quantizer bug for qscale%2==1 (bias was slightly wrong)
Originally committed as revision 895 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/fdctref.c')
-rw-r--r-- | libavcodec/fdctref.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/fdctref.c b/libavcodec/fdctref.c index 245492496f..ae376f7941 100644 --- a/libavcodec/fdctref.c +++ b/libavcodec/fdctref.c @@ -103,6 +103,7 @@ short *block; s += c[i][5] * tmp[8 * 5 + j]; s += c[i][6] * tmp[8 * 6 + j]; s += c[i][7] * tmp[8 * 7 + j]; + s*=8.0; block[8 * i + j] = (short)floor(s + 0.499999); /* |