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

Unified Diff: media/base/audio_splicer.cc

Issue 2466463005: Support (E)AC3 passthrough
Patch Set: Revert changes in audio_renderer_mixer. Created 4 years, 1 month 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/base/audio_splicer.cc
diff --git a/media/base/audio_splicer.cc b/media/base/audio_splicer.cc
index 0976c89432a3baef1ce06606b295b7d840c2bb4d..88d7aeef185e91cfa422261135a5e14e2c51ab2c 100644
--- a/media/base/audio_splicer.cc
+++ b/media/base/audio_splicer.cc
@@ -183,7 +183,8 @@ bool AudioStreamSanitizer::AddInput(const scoped_refptr<AudioBuffer>& input) {
if (!delta.is_zero())
frames_to_fill = output_timestamp_helper_.GetFramesToTarget(timestamp);
- if (frames_to_fill == 0 || std::abs(frames_to_fill) < kMinGapSize) {
+ if (frames_to_fill == 0 || std::abs(frames_to_fill) < kMinGapSize ||
+ input->sample_format() == kSampleFormatRaw) {
AddOutputBuffer(input);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698