Skip to content

Commit

Permalink
sceMpeg: avoid ArrayIndexOutOfBoundsException
Browse files Browse the repository at this point in the history
  • Loading branch information
gid15 committed Oct 7, 2015
1 parent 80b0804 commit 596803c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jpcsp/HLE/modules/sceMpeg.java
Expand Up @@ -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();
Expand Down

0 comments on commit 596803c

Please sign in to comment.