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

Unified Diff: media/filters/frame_processor.cc

Issue 334363006: MSE: Allow negative parsed frame PTS/DTS in FrameProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | media/filters/frame_processor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/frame_processor.cc
diff --git a/media/filters/frame_processor.cc b/media/filters/frame_processor.cc
index 1acf58463302813a1d07ad9a40a02e483236e87e..3071439f6a0633b6a655ea196b99bd526e993559 100644
--- a/media/filters/frame_processor.cc
+++ b/media/filters/frame_processor.cc
@@ -107,14 +107,12 @@ bool FrameProcessor::ProcessFrame(
<< ", DUR=" << frame_duration.InSecondsF();
// Sanity check the timestamps.
- if (presentation_timestamp < base::TimeDelta()) {
- DVLOG(2) << __FUNCTION__ << ": Negative or unknown frame PTS: "
- << presentation_timestamp.InSecondsF();
+ if (presentation_timestamp == kNoTimestamp()) {
+ DVLOG(2) << __FUNCTION__ << ": Unknown frame PTS";
return false;
}
- if (decode_timestamp < base::TimeDelta()) {
- DVLOG(2) << __FUNCTION__ << ": Negative or unknown frame DTS: "
- << decode_timestamp.InSecondsF();
+ if (decode_timestamp == kNoTimestamp()) {
+ DVLOG(2) << __FUNCTION__ << ": Unknown frame DTS";
return false;
}
if (decode_timestamp > presentation_timestamp) {
« no previous file with comments | « no previous file | media/filters/frame_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698