Merge "WriterTest: Fix bounds check"
diff --git a/media/libstagefright/tests/writer/WriterTest.cpp b/media/libstagefright/tests/writer/WriterTest.cpp
index 7f19e23..d68438c 100644
--- a/media/libstagefright/tests/writer/WriterTest.cpp
+++ b/media/libstagefright/tests/writer/WriterTest.cpp
@@ -234,7 +234,7 @@
 
 void getFileDetails(string &inputFilePath, string &info, configFormat &params, bool &isAudio,
                     int32_t streamIndex = 0) {
-    if (streamIndex > sizeof(kInputData) / sizeof(kInputData[0])) {
+    if (streamIndex >= sizeof(kInputData) / sizeof(kInputData[0])) {
         return;
     }
     inputFilePath += kInputData[streamIndex].inputFile;