notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bios: implement psxBios__card_chan
[pcsx_rearmed.git]
/
libpcsxcore
/
mdec.c
diff --git
a/libpcsxcore/mdec.c
b/libpcsxcore/mdec.c
index
629816b
..
b25b961
100644
(file)
--- a/
libpcsxcore/mdec.c
+++ b/
libpcsxcore/mdec.c
@@
-219,7
+219,7
@@
struct _pending_dma1 {
u32 chcr;
};
u32 chcr;
};
-struct {
+st
atic st
ruct {
u32 reg0;
u32 reg1;
u16 * rl;
u32 reg0;
u32 reg1;
u16 * rl;
@@
-436,11
+436,10
@@
static void yuv2rgb24(int *blk, u8 *image) {
}
void mdecInit(void) {
}
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.rl = (u16 *)&psxM[0x100000];
- mdec.reg0 = 0;
- mdec.reg1 = 0;
- mdec.pending_dma1.adr = 0;
- mdec.block_buffer_pos = 0;
}
// command register
}
// command register