Bug 1207909 - p2: Fixed a warning (uninitialized 'err') and typo - r=jya

This commit is contained in:
Gerald Squelart 2015-09-30 07:37:00 +02:00
parent fbef5c401c
commit 361c3a8592

View File

@ -478,14 +478,14 @@ status_t MPEG4Extractor::readMetaData() {
}
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;
}