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..fa799b6cef0283eec14cbc2ce2edcbc047152568 100644 |
--- a/webrtc/modules/audio_coding/codecs/opus/opus_inst.h |
+++ b/webrtc/modules/audio_coding/codecs/opus/opus_inst.h |
@@ -15,7 +15,13 @@ |
struct WebRtcOpusEncInst { |
OpusEncoder* encoder; |
+ int channels; |
int in_dtx_mode; |
+ // When Opus is in DTX mode, we use |zero_counts| to count consecutive zeros |
the sun
2015/11/09 12:41:00
Should you add a TODO to remove this workaround on
minyue-webrtc
2015/11/09 15:13:00
Done.
|
+ // to break long zero segment so as to prevent DTX from going wrong. We use |
+ // one counter for each channel. After each encoding, |zero_counts| contain |
+ // the remaining zeros from the last frame. |
+ size_t* zero_counts; |
}; |
struct WebRtcOpusDecInst { |