Don't error when savestating a psmfplayer.

This commit is contained in:
Unknown W. Brackets 2013-02-04 00:36:22 -08:00
parent 7a0c1f822d
commit 4fbfc5406f

View File

@ -245,6 +245,10 @@ Psmf::~Psmf() {
}
PsmfPlayer::PsmfPlayer(u32 data) {
// Used for savestates.
if (data == 0) {
return;
}
videoCodec = Memory::Read_U32(data);
videoStreamNum = Memory::Read_U32(data + 4);
audioCodec = Memory::Read_U32(data + 8);