Browse code

32 vs. 64bit bugfix by (Dave Huang (dahanc))

Originally committed as revision 1596 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer authored on 2003/02/22 22:44:16
Showing 1 changed files
... ...
@@ -49,7 +49,7 @@ extern void (*add_pixels_clamped_axp_p)(const DCTELEM *block, uint8_t *pixels,
49 49
 static inline int idct_row(DCTELEM *row)
50 50
 {
51 51
     int_fast32_t a0, a1, a2, a3, b0, b1, b2, b3, t;
52
-    uint64_t l, r;
52
+    uint64_t l, r, t2;
53 53
     l = ldq(row);
54 54
     r = ldq(row + 4);
55 55
 
... ...
@@ -60,12 +60,12 @@ static inline int idct_row(DCTELEM *row)
60 60
 
61 61
     if (((l & ~0xffffUL) | r) == 0) {
62 62
         a0 >>= ROW_SHIFT;
63
-        a0 = (uint16_t) a0;
64
-        a0 |= a0 << 16;
65
-        a0 |= a0 << 32;
63
+        t2 = (uint16_t) a0;
64
+        t2 |= t2 << 16;
65
+        t2 |= t2 << 32;
66 66
         
67
-        stq(a0, row);
68
-        stq(a0, row + 4);
67
+        stq(t2, row);
68
+        stq(t2, row + 4);
69 69
         return 1;
70 70
     }
71 71