summaryrefslogtreecommitdiffstats
path: root/common/av_opts.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-17 18:23:24 +0100
committerwm4 <wm4@nowhere>2014-03-17 18:23:24 +0100
commit422af1b948135e422a13e5d58bef32e4ee38f172 (patch)
treeb4291ac8d7ff52b40d6cfb529da346d3e892b4b5 /common/av_opts.h
parent123c34a12e5b28d38f57d4f99b2b8a94520963ef (diff)
downloadmpv-422af1b948135e422a13e5d58bef32e4ee38f172.tar.bz2
mpv-422af1b948135e422a13e5d58bef32e4ee38f172.tar.xz
vaapi: solve potential problem with ambiguous image formats
VAAPI has some ambiguous image formats, like VA_FOURCC_I420, VA_FOURCC_IYUV, VA_FOURCC_YV12 (the latter exactly the same as the first two, just with swapped planes). There is potentially a problem when one specific VAAPI format was picked, and converting it to a mpv format and back to a VAAPI FourCC would result in a numerically different format (even if it's actually the same). Then it could e.g. happen that functions like va_surface_upload() reallocate the underlying VAImage, which would be inefficient. Change the code so that this can't happen. (Probably not a problem in practice with the current VAAPI usage.)
Diffstat (limited to 'common/av_opts.h')
0 files changed, 0 insertions, 0 deletions