summaryrefslogtreecommitdiff
path: root/libavcodec/vp9.c
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2017-08-18 16:37:02 -0700
committerJames Zern <jzern@google.com>2017-08-21 20:01:56 -0700
commitd8269519e4a338fa9521612db9b68c04a0fb2deb (patch)
tree4c55c24915e230819d407daf81b43b9a56ecc70f /libavcodec/vp9.c
parent20a6b198b4849a5934736ac43517d24a70d20840 (diff)
vp9: set color range to MPEG for intraonly profile 0
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>
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r--libavcodec/vp9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 7d8aced8c8..94430db9a3 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -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;