Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46bc5d4f authored by Marco Nelissen's avatar Marco Nelissen Committed by android-build-merger
Browse files

Merge "Fix edge case when applying id3 unsynchronization" into lmp-dev am:...

Merge "Fix edge case when applying id3 unsynchronization" into lmp-dev am: 4c75797a am: fea0a3bb am: f15220d4 am: 7bccf8fa
am: 31a2855f

Change-Id: Iebf8660d698adefcc9989fed8dba45198abcd1e7
parents 5c338b68 31a2855f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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);