Fix to windows test from commit 1914.

Review URL: https://webrtc-codereview.appspot.com/455002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1917 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
marpan@webrtc.org 2012-03-21 00:18:13 +00:00
parent 3fe3252cb3
commit 6503ecdc39

View File

@ -622,9 +622,10 @@ void VCMQmResolution::UpdateDownsamplingState(UpDownAction up_down) {
void VCMQmResolution::UpdateCodecResolution() {
if (action_.spatial != kNoChangeSpatial) {
qm_->change_resolution_spatial = true;
qm_->codec_width = static_cast<uint16_t>(width_ / qm_->spatial_width_fact);
qm_->codec_height = static_cast<uint16_t>
(height_ / qm_->spatial_height_fact);
qm_->codec_width = static_cast<uint16_t>(width_ /
qm_->spatial_width_fact + 0.5f);
qm_->codec_height = static_cast<uint16_t>(height_ /
qm_->spatial_height_fact + 0.5f);
// Size can never exceed native sizes.
assert(qm_->codec_width <= native_width_);
assert(qm_->codec_height <= native_height_);