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

Unified Diff: media/filters/source_buffer_stream.cc

Issue 1018373003: Improving WebM video duration estimation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding limited media log (10 times max) for WebM duration estimates. Created 5 years, 9 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
Index: media/filters/source_buffer_stream.cc
diff --git a/media/filters/source_buffer_stream.cc b/media/filters/source_buffer_stream.cc
index ee1abaf733334bd537e4bbb6b13190ca0b9d37c6..c41d5fe465d3e8ca8af4d81c0a8c0985b4c98b5b 100644
--- a/media/filters/source_buffer_stream.cc
+++ b/media/filters/source_buffer_stream.cc
@@ -786,8 +786,9 @@ void SourceBufferStream::PrepareRangesForNextAppend(
// Handle splices between the existing buffers and the new buffers. If a
// splice is generated the timestamp and duration of the first buffer in
// |new_buffers| will be modified.
- if (splice_frames_enabled_)
+ if (splice_frames_enabled_) {
wolenetz 2015/03/28 00:26:06 nit: why { } here and not elsewhere like below, an
chcunningham 2015/04/13 23:25:18 Reverted. I see this file has plenty of single lin
wolenetz 2015/04/15 02:55:23 No, I personally hope you're not in the minority o
GenerateSpliceFrame(new_buffers);
+ }
DecodeTimestamp prev_timestamp = last_appended_buffer_timestamp_;
bool prev_is_keyframe = last_appended_buffer_is_keyframe_;

Powered by Google App Engine
This is Rietveld 408576698