Loading media/module/extractors/mp3/VBRISeeker.cpp +1 −4 Original line number Diff line number Diff line Loading @@ -84,8 +84,6 @@ VBRISeeker *VBRISeeker::CreateFromSource( scale, entrySize); // RBE check on the small end too // b/280693435, which is duped to b/155563985 if (entrySize < 1 || entrySize > 4) { ALOGE("invalid VBRI entry size: %zu", entrySize); return NULL; Loading Loading @@ -124,13 +122,12 @@ VBRISeeker *VBRISeeker::CreateFromSource( off64_t offset = post_id3_pos; for (size_t i = 0; i < numEntries; ++i) { uint32_t numBytes; uint32_t numBytes = 0; // entrySize is known to be [1..4] switch (entrySize) { case 1: numBytes = buffer[i]; break; case 2: numBytes = U16_AT(buffer + 2 * i); break; case 3: numBytes = U24_AT(buffer + 3 * i); break; default: case 4: numBytes = U32_AT(buffer + 4 * i); break; } Loading Loading
media/module/extractors/mp3/VBRISeeker.cpp +1 −4 Original line number Diff line number Diff line Loading @@ -84,8 +84,6 @@ VBRISeeker *VBRISeeker::CreateFromSource( scale, entrySize); // RBE check on the small end too // b/280693435, which is duped to b/155563985 if (entrySize < 1 || entrySize > 4) { ALOGE("invalid VBRI entry size: %zu", entrySize); return NULL; Loading Loading @@ -124,13 +122,12 @@ VBRISeeker *VBRISeeker::CreateFromSource( off64_t offset = post_id3_pos; for (size_t i = 0; i < numEntries; ++i) { uint32_t numBytes; uint32_t numBytes = 0; // entrySize is known to be [1..4] switch (entrySize) { case 1: numBytes = buffer[i]; break; case 2: numBytes = U16_AT(buffer + 2 * i); break; case 3: numBytes = U24_AT(buffer + 3 * i); break; default: case 4: numBytes = U32_AT(buffer + 4 * i); break; } Loading