Fixes a bug where the render buffer size (and indirectly the non-continuous duration) was computed incorrectly.
BUG=1769 R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1473004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4026 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -1000,15 +1000,10 @@ FrameList::iterator VCMJitterBuffer::FindLastContinuousAndComplete(
|
||||
// Search for a complete and continuous sequence (starting from the last
|
||||
// decoded state or current frame if in initial state).
|
||||
VCMDecodingState previous_state;
|
||||
if (last_decoded_state_.in_initial_state()) {
|
||||
previous_state.SetState(*start_it);
|
||||
} else {
|
||||
previous_state.CopyFrom(last_decoded_state_);
|
||||
}
|
||||
bool continuous_complete = true;
|
||||
previous_state.SetState(*start_it);
|
||||
FrameList::iterator previous_it = start_it;
|
||||
++start_it;
|
||||
while (start_it != frame_list_.end() && continuous_complete) {
|
||||
while (start_it != frame_list_.end()) {
|
||||
start_it = FindOldestCompleteContinuousFrame(start_it, &previous_state);
|
||||
if (start_it == frame_list_.end())
|
||||
break;
|
||||
|
Reference in New Issue
Block a user