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

Unified Diff: media/formats/mpeg/mpeg_audio_stream_parser_base.h

Issue 239423005: Wire up codec_delay() to MP3StreamParser and FFmpegAudioDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ResetTimestampState() on config change. 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
Index: media/formats/mpeg/mpeg_audio_stream_parser_base.h
diff --git a/media/formats/mpeg/mpeg_audio_stream_parser_base.h b/media/formats/mpeg/mpeg_audio_stream_parser_base.h
index ec70dd5ff3dfb4c44500637cc7fa00aa3588378c..31a1b7c383788a678860b7d5a5fdf2bfd0cd8854 100644
--- a/media/formats/mpeg/mpeg_audio_stream_parser_base.h
+++ b/media/formats/mpeg/mpeg_audio_stream_parser_base.h
@@ -23,7 +23,11 @@ class MEDIA_EXPORT MPEGAudioStreamParserBase : public StreamParser {
public:
// |start_code_mask| is used to find the start of each frame header. Also
// referred to as the sync code in the MP3 and ADTS header specifications.
- MPEGAudioStreamParserBase(uint32 start_code_mask, AudioCodec audio_codec);
+ // |codec_delay| is the number of samples the decoder will output before the
+ // first real frame.
+ MPEGAudioStreamParserBase(uint32 start_code_mask,
+ AudioCodec audio_codec,
+ int codec_delay);
virtual ~MPEGAudioStreamParserBase();
// StreamParser implementation.
@@ -142,6 +146,7 @@ class MEDIA_EXPORT MPEGAudioStreamParserBase : public StreamParser {
bool in_media_segment_;
const uint32 start_code_mask_;
const AudioCodec audio_codec_;
+ const int codec_delay_;
DISALLOW_COPY_AND_ASSIGN(MPEGAudioStreamParserBase);
};
« no previous file with comments | « media/formats/mpeg/mp3_stream_parser_unittest.cc ('k') | media/formats/mpeg/mpeg_audio_stream_parser_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698