summaryrefslogtreecommitdiffstats
path: root/ta
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-26 17:43:59 +0100
committerwm4 <wm4@nowhere>2014-12-26 18:11:22 +0100
commitadf7f0661ec7b6c83a3a82478f28967e7a96d298 (patch)
tree1914c642abcf338384a4d94785cc49f8bb6a3e52 /ta
parent3fdb6be3166790ff3aad68dd4d4bb83963815e4b (diff)
downloadmpv-adf7f0661ec7b6c83a3a82478f28967e7a96d298.tar.bz2
mpv-adf7f0661ec7b6c83a3a82478f28967e7a96d298.tar.xz
command: overlay_add: more flexible treatment of offset parameter
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.
Diffstat (limited to 'ta')
0 files changed, 0 insertions, 0 deletions