Initial patch by Carl Eugen Hoyos. Fix trac ticket #5249.
Signed-off-by: Nicolas George <geo...@nsup.org> --- libavcodec/libvpx.c | 1 + libavcodec/libvpxenc.c | 1 + 2 files changed, 2 insertions(+) This is probably quite incomplete (high bit depth?), and there should probably be a consistency check or automatic switch between colorspace and pixel format. Adding James Zern in Cc, since he is the author of this bit. diff --git a/libavcodec/libvpx.c b/libavcodec/libvpx.c index a60d186..980ad01 100644 --- a/libavcodec/libvpx.c +++ b/libavcodec/libvpx.c @@ -38,6 +38,7 @@ static const enum AVPixelFormat vp9_pix_fmts_highcol[] = { AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUV444P, + AV_PIX_FMT_GBRP, AV_PIX_FMT_NONE }; diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 8992497..91499fd 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -295,6 +295,7 @@ static int set_pix_fmt(AVCodecContext *avctx, vpx_codec_caps_t codec_caps, *img_fmt = VPX_IMG_FMT_I440; return 0; #endif + case AV_PIX_FMT_GBRP: case AV_PIX_FMT_YUV444P: enccfg->g_profile = 1; *img_fmt = VPX_IMG_FMT_I444; -- 2.7.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel