Index: webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h |
diff --git a/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h b/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h |
index 4f31ecf0fc6e516a352369fa5bc470f9e0c0bee2..48cec6549d52c282dc6dcf52207f0a5b14bf6b07 100644 |
--- a/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h |
+++ b/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h |
@@ -24,6 +24,8 @@ namespace webrtc { |
// into one packet. |
class AudioEncoderCopyRed final : public AudioEncoder { |
public: |
+ using AudioEncoder::EncodeInternal; |
+ |
struct Config { |
public: |
int payload_type; |
@@ -42,10 +44,6 @@ class AudioEncoderCopyRed final : public AudioEncoder { |
size_t Num10MsFramesInNextPacket() const override; |
size_t Max10MsFramesInAPacket() const override; |
int GetTargetBitrate() const override; |
- EncodedInfo EncodeInternal(uint32_t rtp_timestamp, |
- rtc::ArrayView<const int16_t> audio, |
- size_t max_encoded_bytes, |
- uint8_t* encoded) override; |
void Reset() override; |
bool SetFec(bool enable) override; |
bool SetDtx(bool enable) override; |
@@ -54,6 +52,11 @@ class AudioEncoderCopyRed final : public AudioEncoder { |
void SetProjectedPacketLossRate(double fraction) override; |
void SetTargetBitrate(int target_bps) override; |
+protected: |
+ EncodedInfo EncodeInternal(uint32_t rtp_timestamp, |
+ rtc::ArrayView<const int16_t> audio, |
+ rtc::Buffer* encoded) override; |
+ |
private: |
AudioEncoder* speech_encoder_; |
int red_payload_type_; |