From 432be6362c3100e4009691a7901b54e51eff1406 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 19 Feb 2016 21:06:26 +0100 Subject: lavc/libvpx: Fix support for RGB colorspace. Reported and tested by Nicolas George. Fixes ticket #5249. --- libavcodec/libvpx.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavcodec/libvpx.c') diff --git a/libavcodec/libvpx.c b/libavcodec/libvpx.c index 1e7010b5a9..55edc7ecb5 100644 --- a/libavcodec/libvpx.c +++ b/libavcodec/libvpx.c @@ -38,6 +38,9 @@ static const enum AVPixelFormat vp9_pix_fmts_highcol[] = { AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUV444P, +#if VPX_IMAGE_ABI_VERSION >= 3 + AV_PIX_FMT_GBRP, +#endif AV_PIX_FMT_NONE }; @@ -54,6 +57,11 @@ static const enum AVPixelFormat vp9_pix_fmts_highbd[] = { AV_PIX_FMT_YUV422P12, AV_PIX_FMT_YUV440P12, AV_PIX_FMT_YUV444P12, +#if VPX_IMAGE_ABI_VERSION >= 3 + AV_PIX_FMT_GBRP, + AV_PIX_FMT_GBRP10, + AV_PIX_FMT_GBRP12, +#endif AV_PIX_FMT_NONE }; #endif -- cgit v1.2.3