aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/i386/mpegvideo_mmx.c
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2002-02-18 19:33:27 +0000
committerJuanjo <pulento@users.sourceforge.net>2002-02-18 19:33:27 +0000
commitd140623fc44c67e8955c56c7cf74c56c94c0f064 (patch)
tree2e686108e99dc6db02219cdf86fc288f7a3edf46 /libavcodec/i386/mpegvideo_mmx.c
parent608d0dee6fdb81ad260e74071a329353d74eef39 (diff)
downloadffmpeg-d140623fc44c67e8955c56c7cf74c56c94c0f064.tar.gz
- H.263+ decoder support for Advanded INTRA Coding (buggy)
Originally committed as revision 310 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/mpegvideo_mmx.c')
-rw-r--r--libavcodec/i386/mpegvideo_mmx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/i386/mpegvideo_mmx.c b/libavcodec/i386/mpegvideo_mmx.c
index 3ca40ca047..542d2d819c 100644
--- a/libavcodec/i386/mpegvideo_mmx.c
+++ b/libavcodec/i386/mpegvideo_mmx.c
@@ -83,7 +83,10 @@ static void dct_unquantize_h263_mmx(MpegEncContext *s,
int i, level, qmul, qadd, nCoeffs;
qmul = s->qscale << 1;
- qadd = (s->qscale - 1) | 1;
+ if (s->h263_aic && s->mb_intra)
+ qadd = 0;
+ else
+ qadd = (s->qscale - 1) | 1;
if (s->mb_intra) {
if (n < 4)