Loading media/libstagefright/id3/ID3.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -392,8 +392,13 @@ bool ID3::removeUnsynchronizationV2_4(bool iTunesHack) { --mSize; --dataSize; } if (i + 1 < dataSize) { // Only move data if there's actually something to move. // This handles the special case of the data being only [0xff, 0x00] // which should be converted to just 0xff if unsynchronization is on. mData[writeOffset++] = mData[readOffset++]; } } // move the remaining data following this frame if (readOffset <= oldSize) { memmove(&mData[writeOffset], &mData[readOffset], oldSize - readOffset); Loading Loading
media/libstagefright/id3/ID3.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -392,8 +392,13 @@ bool ID3::removeUnsynchronizationV2_4(bool iTunesHack) { --mSize; --dataSize; } if (i + 1 < dataSize) { // Only move data if there's actually something to move. // This handles the special case of the data being only [0xff, 0x00] // which should be converted to just 0xff if unsynchronization is on. mData[writeOffset++] = mData[readOffset++]; } } // move the remaining data following this frame if (readOffset <= oldSize) { memmove(&mData[writeOffset], &mData[readOffset], oldSize - readOffset); Loading