summaryrefslogtreecommitdiffstats
path: root/core/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-17 23:45:55 +0200
committerwm4 <wm4@nowhere>2013-05-17 23:45:55 +0200
commite40ae27a87b03fa559d6deffd16472c6452f2ebc (patch)
treebd2befb4d3b71ad564bd8caf077efae034ae5e77 /core/command.c
parent883d03fffd961bdb47ac8d256cb42a6c56cd5cda (diff)
downloadmpv-e40ae27a87b03fa559d6deffd16472c6452f2ebc.tar.bz2
mpv-e40ae27a87b03fa559d6deffd16472c6452f2ebc.tar.xz
mp_image: align image allocation height
vo_vdpau actually reads past the image allocation when displaying a non-mod 2 420p image. The vdpau API specifies that VdpVideoSurfacePutBitsYCbCr() requires a height that is a multiple of 4, and surface allocations are automatically rounded. So allocate video images with rounded height. libavutil does the same, so images coming directly from the decoder or from libavfilter are no problem. (libavutil does this alginment explicitly, not just because the decoded image size is aligned to macroblocks.)
Diffstat (limited to 'core/command.c')
0 files changed, 0 insertions, 0 deletions