Index: media/base/stream_parser_buffer.cc |
diff --git a/media/base/stream_parser_buffer.cc b/media/base/stream_parser_buffer.cc |
index cd44ae3750b65f51d025e1a4619df66ecab29d6c..8a13e3800cc11fd548bce5a0b8e679a2679a500e 100644 |
--- a/media/base/stream_parser_buffer.cc |
+++ b/media/base/stream_parser_buffer.cc |
@@ -26,6 +26,7 @@ static scoped_refptr<StreamParserBuffer> CopyBuffer( |
copied_buffer->SetConfigId(buffer.GetConfigId()); |
copied_buffer->set_timestamp(buffer.timestamp()); |
copied_buffer->set_duration(buffer.duration()); |
+ copied_buffer->set_is_duration_estimated(buffer.is_duration_estimated()); |
copied_buffer->set_discard_padding(buffer.discard_padding()); |
copied_buffer->set_splice_timestamp(buffer.splice_timestamp()); |
const DecryptConfig* decrypt_config = buffer.decrypt_config(); |
@@ -73,15 +74,19 @@ void StreamParserBuffer::SetDecodeTimestamp(DecodeTimestamp timestamp) { |
preroll_buffer_->SetDecodeTimestamp(timestamp); |
} |
-StreamParserBuffer::StreamParserBuffer(const uint8* data, int data_size, |
+StreamParserBuffer::StreamParserBuffer(const uint8* data, |
+ int data_size, |
const uint8* side_data, |
- int side_data_size, bool is_key_frame, |
- Type type, TrackId track_id) |
+ int side_data_size, |
+ bool is_key_frame, |
+ Type type, |
+ TrackId track_id) |
: DecoderBuffer(data, data_size, side_data, side_data_size), |
decode_timestamp_(kNoDecodeTimestamp()), |
config_id_(kInvalidConfigId), |
type_(type), |
- track_id_(track_id) { |
+ track_id_(track_id), |
+ is_duration_estimated_(false) { |
// TODO(scherkus): Should DataBuffer constructor accept a timestamp and |
// duration to force clients to set them? Today they end up being zero which |
// is both a common and valid value and could lead to bugs. |