diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-11-15 18:01:56 +0059 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-11-15 18:01:56 +0059 |
commit | c88ae1cb0f76c84cdd73f140ca3096519f2fb0e3 (patch) | |
tree | 9f8855274bccbc72dd0659d973850c4e0619dbc7 | |
parent | be09a8100c7479ca6e416638d49fbf317d680be0 (diff) | |
download | mmtest-c88ae1cb0f76c84cdd73f140ca3096519f2fb0e3.tar.gz |
mmtest: Fix Out of Bounds exception
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | src/org/linaro/mmtest/MultimediaTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/linaro/mmtest/MultimediaTest.java b/src/org/linaro/mmtest/MultimediaTest.java index 57587a9..070e8da 100644 --- a/src/org/linaro/mmtest/MultimediaTest.java +++ b/src/org/linaro/mmtest/MultimediaTest.java @@ -130,7 +130,7 @@ public class MultimediaTest extends Activity implements android.media.MediaPlaye public void runNextTest() { failure = ""; - if(++currentEncodingTest <= tests.length) { + if(++currentEncodingTest < tests.length) { Test t=tests[currentEncodingTest]; status("Running encoding test: " + t.name); if(t.ffmpegParameters.length() == 0) { @@ -169,7 +169,7 @@ public class MultimediaTest extends Activity implements android.media.MediaPlaye runNextTest(); return; } - if(++currentTest > tests.length) { + if(++currentTest >= tests.length) { status("Tests completed"); if(!ranAnyTest) { AlertDialog dlg=new AlertDialog.Builder(this).setTitle("Files not found").setMessage("Multimedia files to be tested could not be found on the SD card. Please put the files (generated by the creator script) into the /mmtest directory of the SD card and try again.").create(); |