summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/jrevdct.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-08-07 23:59:50 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-08-07 23:59:50 +0000
commit4c0836e8f1504db9bbb329a1351050a8ff2cf469 (patch)
tree5a15df1f39b66be829da3641336d0cac1b846e34 /src/libffmpeg/libavcodec/jrevdct.c
parent116de8566118cae73b42132985c174c372ed6c41 (diff)
downloadxine-lib-4c0836e8f1504db9bbb329a1351050a8ff2cf469.tar.gz
xine-lib-4c0836e8f1504db9bbb329a1351050a8ff2cf469.tar.bz2
latest ffmpeg updates - mmx works\! :-)
CVS patchset: 400 CVS date: 2001/08/07 23:59:50
Diffstat (limited to 'src/libffmpeg/libavcodec/jrevdct.c')
-rw-r--r--src/libffmpeg/libavcodec/jrevdct.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/libffmpeg/libavcodec/jrevdct.c b/src/libffmpeg/libavcodec/jrevdct.c
index 2ef40f38e..246f1b190 100644
--- a/src/libffmpeg/libavcodec/jrevdct.c
+++ b/src/libffmpeg/libavcodec/jrevdct.c
@@ -197,16 +197,18 @@ void j_rev_dct(DCTBLOCK data)
register int *idataptr = (int*)dataptr;
+ /* WARNING: we do the same permutation as MMX idct to simplify the
+ video core */
d0 = dataptr[0];
- d1 = dataptr[1];
- d2 = dataptr[2];
- d3 = dataptr[3];
- d4 = dataptr[4];
- d5 = dataptr[5];
- d6 = dataptr[6];
+ d2 = dataptr[1];
+ d4 = dataptr[2];
+ d6 = dataptr[3];
+ d1 = dataptr[4];
+ d3 = dataptr[5];
+ d5 = dataptr[6];
d7 = dataptr[7];
- if ((d1 == 0) && (idataptr[1] | idataptr[2] | idataptr[3]) == 0) {
+ if ((d1 | d2 | d3 | d4 | d5 | d6 | d7) == 0) {
/* AC terms all zero */
if (d0) {
/* Compute a 32 bit value to assign. */