diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-02-19 21:06:26 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-02-19 21:06:26 +0100 |
commit | 432be6362c3100e4009691a7901b54e51eff1406 (patch) | |
tree | 0e76360d5c983f4f715ac01a213576c3a23de7ce /libavcodec/libvpx.c | |
parent | 84d7933e3b9c1a43a30adafebcde2b41f30ce3a1 (diff) | |
download | ffmpeg-432be6362c3100e4009691a7901b54e51eff1406.tar.gz |
lavc/libvpx: Fix support for RGB colorspace.
Reported and tested by Nicolas George.
Fixes ticket #5249.
Diffstat (limited to 'libavcodec/libvpx.c')
-rw-r--r-- | libavcodec/libvpx.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 |