summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-03-15 03:16:21 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-03-15 03:16:21 +0000
commit4d74b98934307c2c34715a3ccce4071064c5c4e5 (patch)
tree8056f054045151d795e2003636c737e00dbb9f75
parent64779dca782f4bfd26e155fbcf46e8cb0894e09c (diff)
downloadpcsxr-4d74b98934307c2c34715a3ccce4071064c5c4e5.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@42449 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rw-r--r--ChangeLog4
-rw-r--r--libpcsxcore/mdec.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 67318e7e..08015d9a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+March 15, 2010 Wei Mingzhi <whistler_wmz@users.sf.net>
+
+ * libpcsxcore/mdec.c: 0x1f should be 31 rather than 15 (stupid /me).
+
March 14, 2010 Wei Mingzhi <whistler_wmz@users.sf.net>
* libpcsxcore/mdec.c: Rewritten MDEC decoder to replace non-free code, also
diff --git a/libpcsxcore/mdec.c b/libpcsxcore/mdec.c
index 517ddbba..8f3a4f59 100644
--- a/libpcsxcore/mdec.c
+++ b/libpcsxcore/mdec.c
@@ -295,7 +295,7 @@ unsigned short *rl2blk(int *blk, unsigned short *mdec_rl) {
#define SCALE8(c) SCALER(c, 20)
#define SCALE5(c) SCALER(c, 23)
-#define CLAMP5(c) ( ((c) < -16) ? 0 : (((c) > (15 - 16)) ? 15 : ((c) + 16)) )
+#define CLAMP5(c) ( ((c) < -16) ? 0 : (((c) > (31 - 16)) ? 31 : ((c) + 16)) )
#define CLAMP8(c) ( ((c) < -128) ? 0 : (((c) > (255 - 128)) ? 255 : ((c) + 128)) )
#define CLAMP_SCALE8(a) (CLAMP8(SCALE8(a)))