diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2006-12-30 10:43:50 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2006-12-30 10:43:50 +0000 |
commit | d3f50ed3963cab15a969000241a9b00cd6d5c618 (patch) | |
tree | 7545373d269b31a7f56eaf8471d34036e1f6ed1b | |
parent | 6d15996e6dfd971ac0b997fbb61027235bdb01cf (diff) | |
download | rockbox-d3f50ed3963cab15a969000241a9b00cd6d5c618.tar.gz rockbox-d3f50ed3963cab15a969000241a9b00cd6d5c618.zip |
add a workaround for gigabeat crashes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11863 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/mpegplayer/idct.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/mpegplayer/idct.c b/apps/plugins/mpegplayer/idct.c index 5f37d7688c..372d18a6dc 100644 --- a/apps/plugins/mpegplayer/idct.c +++ b/apps/plugins/mpegplayer/idct.c @@ -60,7 +60,8 @@ static inline unsigned CLIP(int value) ); return value; } -#elif defined CPU_ARM +/* FIXME why doesn't this work on the gigabeat? */ +#elif defined CPU_ARM && CONFIG_CPU != S3C2440 static inline unsigned CLIP(int value) { asm ( /* Note: Uses knowledge that only the low byte of the result is used */ @@ -301,7 +302,7 @@ void mpeg2_idct_init (uint32_t accel) mpeg2_idct_copy = mpeg2_idct_copy_c; mpeg2_idct_add = mpeg2_idct_add_c; -#if !defined(CPU_COLDFIRE) && !defined(CPU_ARM) +#if !defined(CPU_COLDFIRE) && !defined(CPU_ARM) || CONFIG_CPU == S3C2440 for (i = -3840; i < 3840 + 256; i++) CLIP(i) = (i < 0) ? 0 : ((i > 255) ? 255 : i); #endif |