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

Unified Diff: media/base/audio_decoder_config.h

Issue 23014009: media: Opus support for WebM in Media Source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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_decoder_config.cc » ('j') | media/base/decoder_buffer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_decoder_config.h
diff --git a/media/base/audio_decoder_config.h b/media/base/audio_decoder_config.h
index 1c61e70c3adba554c50a83d8f63e6f4208fc0296..c689ff16e79f07f06f92124fbab8baa14a3fe59b 100644
--- a/media/base/audio_decoder_config.h
+++ b/media/base/audio_decoder_config.h
@@ -80,6 +80,12 @@ class MEDIA_EXPORT AudioDecoderConfig {
int samples_per_second() const { return samples_per_second_; }
SampleFormat sample_format() const { return sample_format_; }
int bytes_per_frame() const { return bytes_per_frame_; }
+ int64 seek_pre_roll() const { return seek_pre_roll_; }
+ void set_seek_pre_roll(int64 seek_pre_roll) {
+ seek_pre_roll_ = seek_pre_roll;
+ }
+ int64 codec_delay() const { return codec_delay_; }
+ void set_codec_delay(int64 codec_delay) { codec_delay_ = codec_delay; }
// Optional byte data required to initialize audio decoders such as Vorbis
// codebooks.
@@ -102,6 +108,8 @@ class MEDIA_EXPORT AudioDecoderConfig {
int bytes_per_frame_;
std::vector<uint8> extra_data_;
bool is_encrypted_;
+ int64 seek_pre_roll_;
+ int64 codec_delay_;
fgalligan1 2013/08/26 21:10:06 I think you need to add comments about what these
vignesh 2013/08/26 21:44:23 Done.
// Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler
// generated copy constructor and assignment operator. Since the extra data is
« no previous file with comments | « no previous file | media/base/audio_decoder_config.cc » ('j') | media/base/decoder_buffer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698