summaryrefslogtreecommitdiffstats
path: root/chrome_elf
diff options
context:
space:
mode:
authortommycli@chromium.org <tommycli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-04 20:55:57 +0000
committertommycli@chromium.org <tommycli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-04 20:55:57 +0000
commit88c8cb264719a9ae817803b0260fc07a6acb03c7 (patch)
tree2f6cd36676567283c41da61833c161260c507b58 /chrome_elf
parent733f7fed2dcfe92c9d94d225051d376580d8a43f (diff)
downloadchromium_src-88c8cb264719a9ae817803b0260fc07a6acb03c7.zip
chromium_src-88c8cb264719a9ae817803b0260fc07a6acb03c7.tar.gz
chromium_src-88c8cb264719a9ae817803b0260fc07a6acb03c7.tar.bz2
MTP Streaming: Optimize header verification.
Currently, for MTP streaming, we make a special request for the header bytes, to verify that it is indeed a media file. In the common case of reading from start to finish, this is wasteful, as the originally requested read starts from the 0th byte and includes the header bytes anyways. This detects that case, and reads the first chunk directly, and then looks at the header bytes within that. BUG=110119 Review URL: https://codereview.chromium.org/185593008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_elf')
0 files changed, 0 insertions, 0 deletions