diff options
author | wm4 <wm4@nowhere> | 2020-03-26 12:23:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-03-26 12:23:32 +0100 |
commit | 537f011c6d07eb56116f44e6bd4f841b392d97f6 (patch) | |
tree | 8186cf0da6bd25ddcfb3fb4ede98f5b78aded5aa /player/osd.c | |
parent | 30f6f279768c97f8ba22c6670ae08896892e2279 (diff) | |
download | mpv-537f011c6d07eb56116f44e6bd4f841b392d97f6.tar.bz2 mpv-537f011c6d07eb56116f44e6bd4f841b392d97f6.tar.xz |
video: report negative subtitle/OSD margins if necessary
Until now, it used only coordinates clipped to the screen for this,
which meant no negative margins were ever reported to libass. This broke
proper rendering of explicitly positioned ASS events (libass simply
could not know the real video size in this case.)
Fix this by reporting margins even if they're negative. This makes it
apparently work correctly with vo_gpu at least.
Note that I'm not really sure if anything in the rendering chain
required non-negative margins. If so, and that code implicitly assumed
it, I suppose crashes and such are possible.
Diffstat (limited to 'player/osd.c')
0 files changed, 0 insertions, 0 deletions