OSDN Git Service

Speed up id3v2 unsynchronization
authorRobert Shih <robertshih@google.com>
Wed, 9 May 2018 22:16:17 +0000 (15:16 -0700)
committerJP Sugarbroad <jpsugar@google.com>
Thu, 24 May 2018 17:45:25 +0000 (10:45 -0700)
commitf5ea1c7ce68251a517ef90b252b744c69283fb73
treeb2e9e74ff383a5e939f13ea9766fbcfa03356109
parent952494d88b1b9e70f2020ca70f29a5537ff35cb7
Speed up id3v2 unsynchronization

Instead of doing many overlapping memmoves, do a single copy pass
that skips over the inserted unsynchronization bytes. For some
files this reduces parsing time from minutes to milliseconds.

Similar to commit 72a43b68da but for v2.2 and v2.3.

Bug: 78029004
Test: poc
Change-Id: I735b7051e77a093d86fb7a3e46209875946225ed
(cherry picked from commit f9d87cc850a589b9b0cc3658cf222187822bcc00)
media/libstagefright/id3/ID3.cpp