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 <is...@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]? _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel