| Index: media/base/audio_splicer.cc
|
| diff --git a/media/base/audio_splicer.cc b/media/base/audio_splicer.cc
|
| index eac1c4924f6d121078e1cbb268d6e7aecaaa5320..b83765e76066bda8e93840f703371959344a6524 100644
|
| --- a/media/base/audio_splicer.cc
|
| +++ b/media/base/audio_splicer.cc
|
| @@ -44,7 +44,8 @@ static void AccurateTrimStart(int frames_to_trim,
|
| static void AccurateTrimEnd(int frames_to_trim,
|
| const scoped_refptr<AudioBuffer> buffer,
|
| const AudioTimestampHelper& timestamp_helper) {
|
| - DCHECK(buffer->timestamp() == timestamp_helper.GetTimestamp());
|
| + DCHECK_LT(std::abs(timestamp_helper.GetFramesToTarget(buffer->timestamp())),
|
| + kMinGapSize);
|
| buffer->TrimEnd(frames_to_trim);
|
| buffer->set_duration(
|
| timestamp_helper.GetFrameDuration(buffer->frame_count()));
|
|
|