Index: remoting/codec/video_encoder_vpx.cc |
diff --git a/remoting/codec/video_encoder_vpx.cc b/remoting/codec/video_encoder_vpx.cc |
index 6c39d477c40e12683ddcbdf43e7a9e31a9f98c7c..02df60bd5aa2b4f373fb7fea8337fc298effc40d 100644 |
--- a/remoting/codec/video_encoder_vpx.cc |
+++ b/remoting/codec/video_encoder_vpx.cc |
@@ -197,6 +197,11 @@ bool VideoEncoderVpx::Initialize(const webrtc::DesktopSize& size) { |
image_->d_h = size.height(); |
image_->h = size.height(); |
+ // libvpx should derive this from|fmt| but currently has a bug: |
+ // https://code.google.com/p/webm/issues/detail?id=627 |
+ image_->x_chroma_shift = 1; |
+ image_->y_chroma_shift = 1; |
+ |
// Initialize active map. |
active_map_width_ = (image_->w + kMacroBlockSize - 1) / kMacroBlockSize; |
active_map_height_ = (image_->h + kMacroBlockSize - 1) / kMacroBlockSize; |