[FFmpeg-cvslog] vp9: set color range to MPEG for intraonly profile 0

James Zern git at videolan.org
Tue Aug 22 06:06:33 EEST 2017


ffmpeg | branch: master | James Zern <jzern at google.com> | Fri Aug 18 16:37:02 2017 -0700| [d8269519e4a338fa9521612db9b68c04a0fb2deb] | committer: James Zern

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 at gmail.com>
Signed-off-by: James Zern <jzern at google.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d8269519e4a338fa9521612db9b68c04a0fb2deb
---

 libavcodec/vp9.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list