Add various checks trying to avoid various crashes found in Google Play crash reports.

This commit is contained in:
Henrik Rydgård committed 2026-02-05 11:12:53 +01:00
1 parent 0c3f6afeef
commit 841e4c8564
8 files changed
+28 -8

No files matched your search

+6
View File
@@ -1400,6 +1400,12 @@ void PostPutAction::run(MipsCall &call) {
ringbufferPutPacketsAdded += packetsAddedThisRound;
}
if (!ctx) {
_dbg_assert_(false);
ERROR_LOG(Log::Mpeg, "sceMpegRingbufferPut: bad mpeg handle %08x", ringbuffer->mpeg);
return;
}
// It seems validation is done only by older mpeg libs.
if (mpegLibVersion < 0x0105 && packetsAddedThisRound > 0) {
// TODO: Faster / less wasteful validation.