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

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: 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 5975c1bdcee94f6937425a8ddb6a7fee7047a225..eb617e31f01c646f492939d238c6afba6be77603 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_in_frames| is the number of silent samples the decoder will
+ // output before the first real frame.
+ MPEGAudioStreamParserBase(uint32 start_code_mask,
+ AudioCodec audio_codec,
+ int codec_delay_in_frames);
virtual ~MPEGAudioStreamParserBase();
// StreamParser implementation.
@@ -134,6 +138,7 @@ class MEDIA_EXPORT MPEGAudioStreamParserBase : public StreamParser {
bool in_media_segment_;
const uint32 start_code_mask_;
const AudioCodec audio_codec_;
+ const int codec_delay_in_frames_;
DISALLOW_COPY_AND_ASSIGN(MPEGAudioStreamParserBase);
};

Powered by Google App Engine
This is Rietveld 408576698