vp9: set color range to MPEG for intraonly profile 0
authorJames Zern <jzern@google.com>
Fri, 18 Aug 2017 23:37:02 +0000 (16:37 -0700)
committerJames Zern <jzern@google.com>
Tue, 22 Aug 2017 03:01:56 +0000 (20:01 -0700)
this is undocumented in the vp9 bitstream and decoding specification
doc, but matches libvpx

Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: James Zern <jzern@google.com>
libavcodec/vp9.c

index 7d8aced..94430db 100644 (file)
@@ -459,7 +459,7 @@ static int decode_frame_header(AVCodecContext *avctx,
                 s->bytesperpixel = 1;
                 s->pix_fmt = AV_PIX_FMT_YUV420P;
                 avctx->colorspace = AVCOL_SPC_BT470BG;
-                avctx->color_range = AVCOL_RANGE_JPEG;
+                avctx->color_range = AVCOL_RANGE_MPEG;
             }
             s->s.h.refreshrefmask = get_bits(&s->gb, 8);
             w = get_bits(&s->gb, 16) + 1;