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

Unified Diff: webrtc/modules/audio_coding/codecs/g711/audio_decoder_pcm.h

Issue 2281453002: Moved codec-specific audio packet splitting into decoders. (Closed)
Patch Set: Created 4 years, 4 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/g711/audio_decoder_pcm.h
diff --git a/webrtc/modules/audio_coding/codecs/g711/audio_decoder_pcm.h b/webrtc/modules/audio_coding/codecs/g711/audio_decoder_pcm.h
index 7fdc3591b309c6ce1638cb6b05fc2ab7d74988e0..6d3cd9bd475117d0abd456d1d97142bceefa0c8b 100644
--- a/webrtc/modules/audio_coding/codecs/g711/audio_decoder_pcm.h
+++ b/webrtc/modules/audio_coding/codecs/g711/audio_decoder_pcm.h
@@ -23,6 +23,8 @@ class AudioDecoderPcmU final : public AudioDecoder {
RTC_DCHECK_GE(num_channels, 1u);
}
void Reset() override;
+ PacketSplits SplitPacket(const uint8_t* payload,
+ size_t payload_len) const override;
int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
int SampleRateHz() const override;
size_t Channels() const override;
@@ -45,6 +47,8 @@ class AudioDecoderPcmA final : public AudioDecoder {
RTC_DCHECK_GE(num_channels, 1u);
}
void Reset() override;
+ PacketSplits SplitPacket(const uint8_t* payload,
+ size_t payload_len) const override;
int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
int SampleRateHz() const override;
size_t Channels() const override;

Powered by Google App Engine
This is Rietveld 408576698