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

Unified Diff: media/filters/video_cadence_estimator.h

Issue 1459923003: Fix Bug: Video with Variable Frame Rate plays at incorrect speed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: VideoRendererAlgorithm Test Case Created 5 years 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
Index: media/filters/video_cadence_estimator.h
diff --git a/media/filters/video_cadence_estimator.h b/media/filters/video_cadence_estimator.h
index b1a79e6a002262ae967d5ad03dc42466f8ff0739..f3d589ad2e7ec6196f89b2b09ccf509156115f0c 100644
--- a/media/filters/video_cadence_estimator.h
+++ b/media/filters/video_cadence_estimator.h
@@ -88,6 +88,7 @@ class MEDIA_EXPORT VideoCadenceEstimator {
// Returns true if the cadence has changed since the last call.
bool UpdateCadenceEstimate(base::TimeDelta render_interval,
base::TimeDelta frame_duration,
+ base::TimeDelta frame_duration_deviation,
base::TimeDelta max_acceptable_drift);
// Returns true if a useful cadence was found.
@@ -153,6 +154,8 @@ class MEDIA_EXPORT VideoCadenceEstimator {
// cadence for a given render interval and frame duration.
const base::TimeDelta minimum_time_until_max_drift_;
+ bool is_variable_frame_rate_;
+
DISALLOW_COPY_AND_ASSIGN(VideoCadenceEstimator);
};

Powered by Google App Engine
This is Rietveld 408576698