diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-02-22 13:44:16 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-02-22 13:44:16 +0000 |
commit | df081b2f3b7edb06d282b084d0b0eaa445b014fb (patch) | |
tree | b977cc769b6598c8e329f240c52fddf6c03cb10b /libavcodec/alpha/simple_idct_alpha.c | |
parent | 4363b41d8dbc76b897c7b61988fbd7e54405b29b (diff) | |
download | ffmpeg-df081b2f3b7edb06d282b084d0b0eaa445b014fb.tar.gz |
32 vs. 64bit bugfix by (Dave Huang (dahanc))
Originally committed as revision 1596 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alpha/simple_idct_alpha.c')
-rw-r--r-- | libavcodec/alpha/simple_idct_alpha.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/alpha/simple_idct_alpha.c b/libavcodec/alpha/simple_idct_alpha.c index 5ce0177408..889fd2ae11 100644 --- a/libavcodec/alpha/simple_idct_alpha.c +++ b/libavcodec/alpha/simple_idct_alpha.c @@ -49,7 +49,7 @@ extern void (*add_pixels_clamped_axp_p)(const DCTELEM *block, uint8_t *pixels, static inline int idct_row(DCTELEM *row) { int_fast32_t a0, a1, a2, a3, b0, b1, b2, b3, t; - uint64_t l, r; + uint64_t l, r, t2; l = ldq(row); r = ldq(row + 4); @@ -60,12 +60,12 @@ static inline int idct_row(DCTELEM *row) if (((l & ~0xffffUL) | r) == 0) { a0 >>= ROW_SHIFT; - a0 = (uint16_t) a0; - a0 |= a0 << 16; - a0 |= a0 << 32; + t2 = (uint16_t) a0; + t2 |= t2 << 16; + t2 |= t2 << 32; - stq(a0, row); - stq(a0, row + 4); + stq(t2, row); + stq(t2, row + 4); return 1; } |