[FFmpeg-devel] [PATCH] libvpx: Support setting color range for vp9.

James Almer jamrial at gmail.com
Wed Dec 30 19:47:32 CET 2015


On 12/30/2015 3:23 PM, Sasi Inguva wrote:
> Pass through color range to vp9 encoder, and parse it in libvpxdec
> 
> Signed-off-by: Sasi Inguva <isasi at google.com>
> ---
>  libavcodec/libvpxdec.c |  4 ++++
>  libavcodec/libvpxenc.c | 20 ++++++++++++++++++++
>  2 files changed, 24 insertions(+)
> 
> diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
> index 7267590..169a137 100644
> --- a/libavcodec/libvpxdec.c
> +++ b/libavcodec/libvpxdec.c
> @@ -68,6 +68,10 @@ static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img)
>          AVCOL_SPC_SMPTE240M, AVCOL_SPC_BT2020_NCL, AVCOL_SPC_RESERVED, AVCOL_SPC_RGB,
>      };
>      avctx->colorspace = colorspaces[img->cs];
> +    static const enum AVColorRange color_ranges[8] = {

Mixed declarations and code. Also, shouldn't it be [2]?



More information about the ffmpeg-devel mailing list