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

Unified Diff: media/base/audio_discard_helper.h

Issue 414603002: Add support for partial append window end trimming. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes. Created 6 years, 5 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 | « no previous file | media/base/audio_discard_helper.cc » ('j') | media/base/audio_discard_helper.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_discard_helper.h
diff --git a/media/base/audio_discard_helper.h b/media/base/audio_discard_helper.h
index deeb45f37ea8eef4600f0142bfbe7ec1eef0ba3f..f7dca483bf67face472ce397aef0708f79a6b308 100644
--- a/media/base/audio_discard_helper.h
+++ b/media/base/audio_discard_helper.h
@@ -31,8 +31,6 @@ class MEDIA_EXPORT AudioDiscardHelper {
// corresponding to the first encoded buffer is output. These frames are not
// represented in the encoded data stream and instead are an artifact of how
// most MP3 decoders work. See http://lame.sourceforge.net/tech-FAQ.txt
- //
- // NOTE: End discard is only supported when there is no |decoder_delay|.
AudioDiscardHelper(int sample_rate, size_t decoder_delay);
~AudioDiscardHelper();
@@ -73,6 +71,10 @@ class MEDIA_EXPORT AudioDiscardHelper {
bool delayed_discard_;
DecoderBuffer::DiscardPadding delayed_discard_padding_;
+ // Index into the next buffer received by ProcessBuffers() at which a discard
+ // of |decoder_delay_| - |delayed_end_discard_| frames should be discarded.
+ size_t delayed_end_discard_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(AudioDiscardHelper);
};
« no previous file with comments | « no previous file | media/base/audio_discard_helper.cc » ('j') | media/base/audio_discard_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698