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

Unified Diff: webrtc/modules/video_coding/frame_buffer2.cc

Issue 2844643002: Add warning about timestamp non-monotonicity in the frame buffer. (Closed)
Patch Set: philipel comments 1. Created 3 years, 8 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: webrtc/modules/video_coding/frame_buffer2.cc
diff --git a/webrtc/modules/video_coding/frame_buffer2.cc b/webrtc/modules/video_coding/frame_buffer2.cc
index acc1bb83c5a0e448e030d42b98eab5d25315b0a1..451ea5cdf39bc38555f3cf81acafbb8c13ea3eda 100644
--- a/webrtc/modules/video_coding/frame_buffer2.cc
+++ b/webrtc/modules/video_coding/frame_buffer2.cc
@@ -144,6 +144,18 @@ FrameBuffer::ReturnReason FrameBuffer::NextFrame(
PropagateDecodability(next_frame_it_->second);
AdvanceLastDecodedFrame(next_frame_it_);
+ if (last_decoded_frame_it_ != frames_.end() &&
+ AheadOrAt(last_decoded_frame_timestamp_, frame->timestamp)) {
brandtr 2017/04/26 11:26:33 This is correct being >=, right? I don't think we
philipel 2017/04/26 12:27:28 When we use SVC we will send frame with the same t
brandtr 2017/04/26 15:16:21 Right. What about this?
+ int last_decoded_frame_picture_id =
+ last_decoded_frame_it_->first.picture_id;
+ LOG(LS_WARNING) << "Sending frame "
+ << "(timestamp = " << frame->timestamp
+ << ", picture_id = " << frame->picture_id
+ << ") to decoder when last decoded frame was "
+ << "(timestamp = " << last_decoded_frame_timestamp_
+ << ", picture_id = " << last_decoded_frame_picture_id
+ << ").";
+ }
last_decoded_frame_timestamp_ = frame->timestamp;
*frame_out = std::move(frame);
return kFrameFound;
« 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