[FFmpeg-cvslog] vp9: fix RGB chroma subsampling.

Ronald S. Bultje git at videolan.org
Fri Sep 4 16:07:47 CEST 2015


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Wed Sep  2 16:47:51 2015 -0400| [7cc7d13fe32fc3fb8c53d1063b777a3b8b864d7c] | committer: Ronald S. Bultje

vp9: fix RGB chroma subsampling.

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

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

diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index e3593e7..760f045 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -500,7 +500,7 @@ static enum AVPixelFormat read_colorspace_details(AVCodecContext *ctx)
             AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRP10, AV_PIX_FMT_GBRP12
         };
         if (ctx->profile & 1) {
-            s->ss_h = s->ss_v = 1;
+            s->ss_h = s->ss_v = 0;
             res = pix_fmt_rgb[bits];
             ctx->color_range = AVCOL_RANGE_JPEG;
             if (get_bits1(&s->gb)) {



More information about the ffmpeg-cvslog mailing list