vaapi_decode: Make the frames context format selection more general
authorMark Thompson <sw@jkqxz.net>
Mon, 19 Feb 2018 20:04:31 +0000 (20:04 +0000)
committerMark Thompson <sw@jkqxz.net>
Wed, 21 Feb 2018 23:38:10 +0000 (23:38 +0000)
commit99ab0a13dc231b92dcd207f58a1101fe5f11d663
treec665870238d447a63534f65988029649533ccf17
parent193e43e6195eba669015098b4245a7287b7506b0
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.
libavcodec/vaapi_decode.c
libavcodec/vaapi_decode.h