mirror of https://github.com/mpv-player/mpv
adf7f0661e
Essentially, don't make it the mmap() argument, and just add it to the memory address. This hides tricky things like alignment reequirements from the user. Strictly speaking, this is not entirely backwards compatible: this adds the regression that you can't access past 2 or 4 GB of a file on 32 bit systems anymore. But I doubt anyone cared about this. In theory, we could be clever, and just align the offset manually and pass that to mmap(). This would also be transparent to the user, but minimally more effort, so this is left as exercise to the reader. |
||
---|---|---|
.. | ||
client_api_examples | ||
man | ||
client-api-changes.rst | ||
contribute.md | ||
crosscompile-mingw.md | ||
edl-mpv.rst | ||
encoding.rst | ||
release-policy.md | ||
tech-overview.txt | ||
waf-buildsystem.rst |