summaryrefslogtreecommitdiff
path: root/libpcsxcore/mdec.c
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-12-27 03:02:25 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-12-27 03:02:25 +0000
commite832ac97861db3896e6771d091eb952c706dd101 (patch)
tree75f96c74a21527244701f0c9032a46c0170de3f4 /libpcsxcore/mdec.c
parent3f28bbe662d843c6cd3e073e44752f0f28560a02 (diff)
downloadpcsxr-e832ac97861db3896e6771d091eb952c706dd101.tar.gz
* Removed unnecessary files.
* Clean up build system (Issue #7815, VoidMage). * properly init some variables on reset (Patch #7887, notaz). * dfxvideo: several fixes to FPS bar (Patch #7879, dario86). * Region autodetection for 3 PAL demos (Patch #7879, dario86). git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@61512 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/mdec.c')
-rw-r--r--libpcsxcore/mdec.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libpcsxcore/mdec.c b/libpcsxcore/mdec.c
index 62afbcbd..303bd679 100644
--- a/libpcsxcore/mdec.c
+++ b/libpcsxcore/mdec.c
@@ -219,7 +219,7 @@ struct _pending_dma1 {
u32 chcr;
};
-struct {
+static struct {
u32 reg0;
u32 reg1;
u16 * rl;
@@ -436,11 +436,10 @@ static void yuv2rgb24(int *blk, u8 *image) {
}
void mdecInit(void) {
+ memset(&mdec, 0, sizeof(mdec));
+ memset(iq_y, 0, sizeof(iq_y));
+ memset(iq_uv, 0, sizeof(iq_uv));
mdec.rl = (u16 *)&psxM[0x100000];
- mdec.reg0 = 0;
- mdec.reg1 = 0;
- mdec.pending_dma1.adr = 0;
- mdec.block_buffer_pos = 0;
}
// command register