On 24/05/17 13:33, Luca Barbato wrote:
> From: Elviss Strazdins <[email protected]>
> 
> ---
> 
> Provided as PR on github. Mark do you have opinions on this?
> 
>  libavutil/hwcontext_vaapi.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
> index 23bce76605..2260518ca6 100644
> --- a/libavutil/hwcontext_vaapi.c
> +++ b/libavutil/hwcontext_vaapi.c
> @@ -107,8 +107,10 @@ static const struct {
>    //MAP(BGRX, RGB32,   BGR0),
>      MAP(RGBA, RGB32,   RGBA),
>    //MAP(RGBX, RGB32,   RGB0),
> +#ifdef VA_FOURCC_ABGR
>      MAP(ABGR, RGB32,   ABGR),
>    //MAP(XBGR, RGB32,   0BGR),
> +#endif
>      MAP(ARGB, RGB32,   ARGB),
>    //MAP(XRGB, RGB32,   0RGB),
>  };
> --
> 2.12.2

LGTM.

(Looking at releases, VA_FOURCC_ABGR was introduced in libva 1.3.0, while the 
oldest version we (notionally, apparently) support is 1.2.0.)

Thanks,

- Mark
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to