Update bitrate adjustment with true buffer used size.

This used to be updated with the reserved capacity of the buffer,
not the actual portion in use.

BUG=webrtc:6034

Review-Url: https://codereview.webrtc.org/2620653005
Cr-Commit-Position: refs/heads/master@{#15982}
This commit is contained in:
kthelgason
2017-01-10 03:02:04 -08:00
committed by Commit bot
parent 5d682ca7a1
commit a3f6ce10ed

View File

@ -731,7 +731,7 @@ void H264VideoToolboxEncoder::OnEncodedFrame(
LOG(LS_ERROR) << "Encode callback failed: " << res.error;
return;
}
bitrate_adjuster_.Update(frame._size);
bitrate_adjuster_.Update(frame._length);
}
VideoEncoder::ScalingSettings H264VideoToolboxEncoder::GetScalingSettings()