Index: webrtc/video/send_statistics_proxy.cc |
diff --git a/webrtc/video/send_statistics_proxy.cc b/webrtc/video/send_statistics_proxy.cc |
index 7316ee83625f6f035297d74d8b87bee8e1bc2ad8..2aea976ae7d3288e7c0c9a71fcd7a95ba7270c3f 100644 |
--- a/webrtc/video/send_statistics_proxy.cc |
+++ b/webrtc/video/send_statistics_proxy.cc |
@@ -168,8 +168,7 @@ void SendStatisticsProxy::OnSendEncodedImage( |
stats->height = encoded_image._encodedHeight; |
update_times_[ssrc].resolution_update_ms = clock_->TimeInMilliseconds(); |
- if (encoded_image._frameType != kSkipFrame) |
- key_frame_counter_.Add(encoded_image._frameType == kKeyFrame); |
+ key_frame_counter_.Add(encoded_image._frameType == kKeyFrame); |
// TODO(asapersson): This is incorrect if simulcast layers are encoded on |
// different threads and there is no guarantee that one frame of all layers |