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

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: Comments. 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_unittest.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..2c020366543a5adfb5fa118a9b90cab9a8aa661e 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,11 @@ class MEDIA_EXPORT AudioDiscardHelper {
bool delayed_discard_;
DecoderBuffer::DiscardPadding delayed_discard_padding_;
+ // When |decoder_delay_| > 0, the number of frames which should be discarded
+ // from the next buffer. The index at which to start discarding is calculated
+ // by subtracting |delayed_end_discard_| from |decoder_delay_|.
+ 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_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698