| Index: media/base/stream_parser_buffer.cc
|
| diff --git a/media/base/stream_parser_buffer.cc b/media/base/stream_parser_buffer.cc
|
| index ae826594d5e09504f11b69ffb14f6f4ac2403a92..e9d64272c4d84670c4b2e7e1fe739433e856412b 100644
|
| --- a/media/base/stream_parser_buffer.cc
|
| +++ b/media/base/stream_parser_buffer.cc
|
| @@ -106,11 +106,6 @@
|
| void StreamParserBuffer::ConvertToSpliceBuffer(
|
| const BufferQueue& pre_splice_buffers) {
|
| DCHECK(splice_buffers_.empty());
|
| - DCHECK(duration() > base::TimeDelta())
|
| - << "Only buffers with a valid duration can convert to a splice buffer."
|
| - << " pts " << timestamp().InSecondsF()
|
| - << " dts " << GetDecodeTimestamp().InSecondsF()
|
| - << " dur " << duration().InSecondsF();
|
| DCHECK(!end_of_stream());
|
|
|
| // Make a copy of this first, before making any changes.
|
| @@ -144,8 +139,6 @@
|
|
|
| // The splice duration is the duration of all buffers before the splice plus
|
| // the highest ending timestamp after the splice point.
|
| - DCHECK(overlapping_buffer->duration() > base::TimeDelta());
|
| - DCHECK(pre_splice_buffers.back()->duration() > base::TimeDelta());
|
| set_duration(
|
| std::max(overlapping_buffer->timestamp() + overlapping_buffer->duration(),
|
| pre_splice_buffers.back()->timestamp() +
|
|
|