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

Unified Diff: webrtc/modules/audio_coding/codecs/opus/opus_inst.h

Issue 1415173005: Prevent Opus DTX from generating intermittent noise during silence (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: new memory treatment and a test Created 5 years, 2 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: webrtc/modules/audio_coding/codecs/opus/opus_inst.h
diff --git a/webrtc/modules/audio_coding/codecs/opus/opus_inst.h b/webrtc/modules/audio_coding/codecs/opus/opus_inst.h
index 373db392a6f3acbfeca4bca22f481aed56bffd82..de5e21aba4cc5ae8a005bfba3bef2de1898d03bf 100644
--- a/webrtc/modules/audio_coding/codecs/opus/opus_inst.h
+++ b/webrtc/modules/audio_coding/codecs/opus/opus_inst.h
@@ -15,7 +15,11 @@
struct WebRtcOpusEncInst {
OpusEncoder* encoder;
+ int channels;
int in_dtx_mode;
+ // Count consecutive zeros during DTX. We break long zero segment to prevent
+ // DTX from going wrong.
+ size_t* zero_counts;
kwiberg-webrtc 2015/10/29 16:35:21 What is this number more exactly? The number of co
minyue-webrtc 2015/10/30 14:06:46 I made some change in wording. I hope it is cleare
};
struct WebRtcOpusDecInst {

Powered by Google App Engine
This is Rietveld 408576698