diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-02-19 20:04:31 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-02-21 23:38:10 +0000 |
commit | 99ab0a13dc231b92dcd207f58a1101fe5f11d663 (patch) | |
tree | c665870238d447a63534f65988029649533ccf17 /libavcodec/vaapi_decode.h | |
parent | 193e43e6195eba669015098b4245a7287b7506b0 (diff) |
vaapi_decode: Make the frames context format selection more general
Examine the supported fourcc list manually and make the best choice, then
use the external attribute on the frames context to force that fourcc.
Diffstat (limited to 'libavcodec/vaapi_decode.h')
-rw-r--r-- | libavcodec/vaapi_decode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vaapi_decode.h b/libavcodec/vaapi_decode.h index 1fcecac468..6b415dd1d3 100644 --- a/libavcodec/vaapi_decode.h +++ b/libavcodec/vaapi_decode.h @@ -72,6 +72,8 @@ FF_ENABLE_DEPRECATION_WARNINGS enum AVPixelFormat surface_format; int surface_count; + + VASurfaceAttrib pixel_format_attribute; } VAAPIDecodeContext; |