summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-29 15:13:45 +0200
committerwm4 <wm4@nowhere>2015-06-29 15:13:45 +0200
commitef3d121c9e57ece01434e1de7e027e77eadbef80 (patch)
tree18ed17557ff28916d213caca6d3334e25a9a65f5 /video/decode/vd_lavc.c
parente0b1b88e8367f7d31ee4a4dcdc25c8d0676e6911 (diff)
downloadmpv-ef3d121c9e57ece01434e1de7e027e77eadbef80.tar.bz2
mpv-ef3d121c9e57ece01434e1de7e027e77eadbef80.tar.xz
vaapi: treat cropped decoder output slightly more correctly
Work around that FFmpeg doesn't distinguish between surface and cropped size. The decoder always aligns the surface size to something "convenient" (e.g. 16 for h264), and to get to the correct cropped size, the output image's width/height is reduced. Using the cropped size instead of the real surface size breaks the libva API in certain cases, so we simply store and use the original size in our per-surface struct. (If data is cropped on the left/top borders, hw decoding will simply display these - FFmpeg doesn't let us do better.)
Diffstat (limited to 'video/decode/vd_lavc.c')
0 files changed, 0 insertions, 0 deletions