Fix framerate sent to account for actually sent frames.

TESTS=trybots
BUG=1481

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3682 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org
2013-03-18 17:04:52 +00:00
parent abc9d5b6aa
commit f4944d49cf
4 changed files with 95 additions and 100 deletions

View File

@ -221,7 +221,8 @@ VCMEncodedFrameCallback::Encoded(
}
_encodedBytes = encodedBytes;
if (_mediaOpt != NULL) {
_mediaOpt->UpdateWithEncodedData(_encodedBytes, frameType);
_mediaOpt->UpdateWithEncodedData(_encodedBytes, encodedImage._timeStamp,
frameType);
if (_internalSource)
{
return _mediaOpt->DropFrame(); // Signal to encoder to drop next frame