summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_decode.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-02-19 20:04:31 +0000
committerMark Thompson <sw@jkqxz.net>2018-02-21 23:38:10 +0000
commit99ab0a13dc231b92dcd207f58a1101fe5f11d663 (patch)
treec665870238d447a63534f65988029649533ccf17 /libavcodec/vaapi_decode.h
parent193e43e6195eba669015098b4245a7287b7506b0 (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.h2
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;