Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(947)

Unified Diff: media/filters/decoder_stream_traits.cc

Issue 2614583002: Fix Media.Video.KeyFrameDistance metric calculation (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decoder_stream_traits.cc
diff --git a/media/filters/decoder_stream_traits.cc b/media/filters/decoder_stream_traits.cc
index 645a1de417b6dd9b817e5f27368b797dc408feb6..fcbc19e4baa8e7f680afb3b22f3caa0d6842a03c 100644
--- a/media/filters/decoder_stream_traits.cc
+++ b/media/filters/decoder_stream_traits.cc
@@ -144,6 +144,7 @@ void DecoderStreamTraits<DemuxerStream::VIDEO>::OnDecode(
UMA_HISTOGRAM_MEDIUM_TIMES(
"Media.Video.KeyFrameDistance",
current_frame_timestamp - last_keyframe_timestamp_);
+ last_keyframe_timestamp_ = current_frame_timestamp;
}
} // namespace media
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698