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

Unified Diff: media/base/android/audio_decoder_job.cc

Issue 898393002: media: Enable Opus support in Clank <video> and MSE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add default case to switch Created 5 years, 10 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 | « media/base/android/audio_decoder_job.h ('k') | media/base/android/demuxer_stream_player_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/audio_decoder_job.cc
diff --git a/media/base/android/audio_decoder_job.cc b/media/base/android/audio_decoder_job.cc
index 4983225ef36f9e9fa515d5f32c3ef5b3ae804c0f..25de5a145d6cf434e81df991f0dfa74aa86dad1e 100644
--- a/media/base/android/audio_decoder_job.cc
+++ b/media/base/android/audio_decoder_job.cc
@@ -66,6 +66,8 @@ void AudioDecoderJob::SetDemuxerConfigs(const DemuxerConfigs& configs) {
config_sampling_rate_ = configs.audio_sampling_rate;
set_is_content_encrypted(configs.is_audio_encrypted);
audio_extra_data_ = configs.audio_extra_data;
+ audio_codec_delay_ns_ = configs.audio_codec_delay_ns;
+ audio_seek_preroll_ns_ = configs.audio_seek_preroll_ns;
bytes_per_frame_ = kBytesPerAudioOutputSample * num_channels_;
if (!media_codec_bridge_)
output_sampling_rate_ = config_sampling_rate_;
@@ -143,7 +145,8 @@ MediaDecoderJob::MediaDecoderJobStatus
if (!(static_cast<AudioCodecBridge*>(media_codec_bridge_.get()))->Start(
audio_codec_, config_sampling_rate_, num_channels_, &audio_extra_data_[0],
- audio_extra_data_.size(), true, GetMediaCrypto().obj())) {
+ audio_extra_data_.size(), audio_codec_delay_ns_, audio_seek_preroll_ns_,
+ true, GetMediaCrypto().obj())) {
media_codec_bridge_.reset();
return STATUS_FAILURE;
}
« no previous file with comments | « media/base/android/audio_decoder_job.h ('k') | media/base/android/demuxer_stream_player_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698