Fix native exception occurred when seeking mp4 file

The sample count of stsz box is not equal to the sample
count of stts box. For example, the sample count of stts
box is 1502 but the sample count of stsz box is 1503.

Besides, mSampleTimeEntries is not initialized with 0 when
the code is built. Therefore, if getSampleTime() function
is called with index 1502, for example, we use a sample with
sample count of stsz box to be 1503, the
mCompositionTime with random value will be used, which
might result in a overflow issue.

Bug: 136425704
Test: Seek a mp4 file which causes native exception before
this patch, and check if there is no exception
Change-Id: I8b56e58b5b52e0bbd8e6e92fc0f381006780c3d5
diff --git a/media/extractors/mp4/SampleTable.cpp b/media/extractors/mp4/SampleTable.cpp
index bf29bf1..9dddf2c 100644
--- a/media/extractors/mp4/SampleTable.cpp
+++ b/media/extractors/mp4/SampleTable.cpp
@@ -655,6 +655,7 @@
     }
 
     mSampleTimeEntries = new (std::nothrow) SampleTimeEntry[mNumSampleSizes];
+    memset(mSampleTimeEntries, 0, sizeof(SampleTimeEntry) * mNumSampleSizes);
     if (!mSampleTimeEntries) {
         ALOGE("Cannot allocate sample entry table with %llu entries.",
                 (unsigned long long)mNumSampleSizes);