From 1faef7d0843b386d070e2840565e774f251a6b71 Mon Sep 17 00:00:00 2001 From: "wu@webrtc.org" Date: Thu, 20 Mar 2014 17:00:46 +0000 Subject: [PATCH] Use codec width/height as the encoded_image width/height. The raw_->w and raw_->h which are the stored image width/height may not be the encoded image size in the case when the incoming frame has a odd size. R=marpan@google.com, marpan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/10289004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5739 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc index 6fd9685df6..0a67064fbb 100644 --- a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc +++ b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc @@ -473,8 +473,8 @@ int VP8EncoderImpl::GetEncodedPartitions(const I420VideoFrame& input_image) { TRACE_COUNTER1("webrtc", "EncodedFrameSize", encoded_image_._length); encoded_image_._timeStamp = input_image.timestamp(); encoded_image_.capture_time_ms_ = input_image.render_time_ms(); - encoded_image_._encodedHeight = raw_->h; - encoded_image_._encodedWidth = raw_->w; + encoded_image_._encodedHeight = codec_.height; + encoded_image_._encodedWidth = codec_.width; encoded_complete_callback_->Encoded(encoded_image_, &codec_specific, &frag_info); }