Permalink
Browse files

sceMpeg: avoid ArrayIndexOutOfBoundsException

  • Loading branch information...
gid15 committed Oct 7, 2015
1 parent 80b0804 commit 596803cea29a5244e9ee78f47f646588080763a5
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/jpcsp/HLE/modules/sceMpeg.java
@@ -1165,6 +1165,10 @@ public void writeLastFrameABGR(int buffer, int frameWidth, int pixelMode) {
}
private boolean decodeImage(int buffer, int frameWidth, int pixelMode, TPointer32 gotFrameAddr, boolean writeAbgr) {
if (pixelMode < 0) {
return false;
}
DecodedImageInfo decodedImageInfo;
synchronized (decodedImages) {
decodedImageInfo = decodedImages.pollFirst();

0 comments on commit 596803c

Please sign in to comment.