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

Unified Diff: media/base/audio_splicer.cc

Issue 2466463005: Support (E)AC3 passthrough
Patch Set: Improve CastMediaClient::IsSupportedPassthroughAudio() 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 ||
DaleCurtis 2016/11/01 23:05:13 Raw formats should just skip the sanitizer entirel
AndyWu 2016/11/04 18:04:24 Sorry, I am not sure what to do. Should I move the
chcunningham 2016/11/11 19:14:28 This whole file is now deleted. But Dale is right
AndyWu 2016/11/11 23:49:12 Thanks a lot for the well written article from Dal
+ input->sample_format() == kSampleFormatRaw) {
AddOutputBuffer(input);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698