Chromium Code Reviews| Index: webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h |
| diff --git a/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h b/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h |
| index 49df3c68be302ad8d4f6db0e1b76d963065115b7..344114dfdd53b34913561ab4f9e9f329a9ba4854 100644 |
| --- a/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h |
| +++ b/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h |
| @@ -57,13 +57,13 @@ class AudioEncoderDecoderIsacT : public AudioEncoder, public AudioDecoder { |
| int SampleRateHz() const override; |
| int NumChannels() const override; |
| size_t MaxEncodedBytes() const override; |
| - int Num10MsFramesInNextPacket() const override; |
| - int Max10MsFramesInAPacket() const override; |
| + size_t Num10MsFramesInNextPacket() const override; |
| + size_t Max10MsFramesInAPacket() const override; |
|
minyue-webrtc
2015/07/31 14:10:14
I would like to know what determines the choice be
Peter Kasting
2015/08/04 02:02:52
size_t should be used for byte or object counts, e
minyue-webrtc
2015/08/04 07:31:50
Fair enough
|
| int GetTargetBitrate() const override; |
| // AudioDecoder methods. |
| bool HasDecodePlc() const override; |
| - int DecodePlc(int num_frames, int16_t* decoded) override; |
| + size_t DecodePlc(size_t num_frames, int16_t* decoded) override; |
|
minyue-webrtc
2015/07/31 14:10:14
I know that DecodePlc may give non-negative return
Peter Kasting
2015/08/04 02:02:52
If I'm converting this interface to size_t, it nev
|
| int Init() override; |
| int IncomingPacket(const uint8_t* payload, |
| size_t payload_len, |