Bug 1207909 - p2: Fixed a warning (uninitialized 'err') and typo - r=jya
authorGerald Squelart <gsquelart@mozilla.com>
Wed, 30 Sep 2015 07:37:00 +0200
changeset 265568 43667f222989cbd34999f41d1d20257b1f6aef64
parent 265567 164097161b904bc78ae17a817a7488cd917b8e2d
child 265569 5be97c635fbd7109d60dc96feee1d70844dced55
push id15472
push usercbook@mozilla.com
push dateFri, 02 Oct 2015 11:51:34 +0000
treeherderfx-team@2c33ef6b27e0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1207909
milestone44.0a1
Bug 1207909 - p2: Fixed a warning (uninitialized 'err') and typo - r=jya
media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp
--- a/media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp
+++ b/media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp
@@ -473,24 +473,24 @@ static void MakeFourCCString(uint32_t x,
 }
 
 status_t MPEG4Extractor::readMetaData() {
     if (mInitCheck != NO_INIT) {
         return mInitCheck;
     }
 
     off64_t offset = 0;
-    status_t err;
+    status_t err = NO_INIT;
     while (!mFirstTrack) {
         err = parseChunk(&offset, 0);
         // The parseChunk function returns UNKNOWN_ERROR to skip
         // some boxes we don't want to handle. Filter that error
         // code but return others so e.g. I/O errors propagate.
         if (err != OK && err != (status_t) UNKNOWN_ERROR) {
-          ALOGW("Error %d parsing chuck at offset %lld looking for first track",
+          ALOGW("Error %d parsing chunck at offset %lld looking for first track",
               err, (long long)offset);
           break;
         }
     }
 
     if (mInitCheck == OK) {
         if (mHasVideo) {
             mFileMetaData->setCString(