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

Unified Diff: media/base/audio_discard_helper.cc

Issue 261533002: Remove AudioBuffer::set_duration(), instead base on frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix divide by zero case. Created 6 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 | « media/base/audio_buffer_unittest.cc ('k') | media/base/audio_discard_helper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_discard_helper.cc
diff --git a/media/base/audio_discard_helper.cc b/media/base/audio_discard_helper.cc
index 3088130b00c48ca9f3c7966a4c45eac53e4ca87c..d868382ef42c6a639e832484bc4830ac0b4f6254 100644
--- a/media/base/audio_discard_helper.cc
+++ b/media/base/audio_discard_helper.cc
@@ -103,10 +103,8 @@ bool AudioDiscardHelper::ProcessBuffers(
DCHECK(encoded_buffer->discard_padding() == base::TimeDelta());
}
- // Assign timestamp and duration to the buffer.
+ // Assign timestamp to the buffer.
decoded_buffer->set_timestamp(timestamp_helper_.GetTimestamp());
- decoded_buffer->set_duration(
- timestamp_helper_.GetFrameDuration(decoded_buffer->frame_count()));
timestamp_helper_.AddFrames(decoded_buffer->frame_count());
return true;
}
« no previous file with comments | « media/base/audio_buffer_unittest.cc ('k') | media/base/audio_discard_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698