commit | 8392cd9edd859b835f566a7eb212b075dca01deb | [log] [tgz] |
---|---|---|
author | mikhal@webrtc.org <mikhal@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Thu Apr 25 21:30:50 2013 |
committer | mikhal@webrtc.org <mikhal@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Thu Apr 25 21:30:50 2013 |
tree | 22c02ea129b04c7ad62029abce58af8f4db16b49 | |
parent | dc3cd217b2a20739f7a458a3b4175042f5516862 [diff] [blame] |
VCM/JB: Using last decoded state for waiting for key relanding 1323006 BUG= Review URL: https://webrtc-codereview.appspot.com/1354004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3902 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/video_coding/main/source/decoding_state.cc b/webrtc/modules/video_coding/main/source/decoding_state.cc index 8147897..eb03705 100644 --- a/webrtc/modules/video_coding/main/source/decoding_state.cc +++ b/webrtc/modules/video_coding/main/source/decoding_state.cc
@@ -149,8 +149,11 @@ // Return true when in initial state. // Note that when a method is not applicable it will return false. assert(frame != NULL); - if (in_initial_state_) - return true; + if (in_initial_state_) { + // Always start with a key frame. + if (frame->FrameType() == kVideoFrameKey) return true; + return false; + } if (!ContinuousLayer(frame->TemporalId(), frame->Tl0PicId())) { // Base layers are not continuous or temporal layers are inactive.