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

Unified Diff: webrtc/modules/audio_coding/codecs/g722/audio_decoder_g722.cc

Issue 2342443005: Moved Opus-specific payload splitting into AudioDecoderOpus. (Closed)
Patch Set: Created 4 years, 3 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/g722/audio_decoder_g722.cc
diff --git a/webrtc/modules/audio_coding/codecs/g722/audio_decoder_g722.cc b/webrtc/modules/audio_coding/codecs/g722/audio_decoder_g722.cc
index f46ccd386296fd0073141a7d0b1b246d96db47a7..3f3de80290c2621312e526faf2c2dcc6c771a700 100644
--- a/webrtc/modules/audio_coding/codecs/g722/audio_decoder_g722.cc
+++ b/webrtc/modules/audio_coding/codecs/g722/audio_decoder_g722.cc
@@ -50,10 +50,9 @@ void AudioDecoderG722::Reset() {
std::vector<AudioDecoder::ParseResult> AudioDecoderG722::ParsePayload(
rtc::Buffer* payload,
- uint32_t timestamp,
- bool is_primary) {
- return LegacyEncodedAudioFrame::SplitBySamples(this, payload, timestamp,
- is_primary, 8, 16);
+ uint32_t timestamp) {
+ return LegacyEncodedAudioFrame::SplitBySamples(this, payload, timestamp, 8,
+ 16);
}
int AudioDecoderG722::PacketDuration(const uint8_t* encoded,
@@ -128,10 +127,9 @@ void AudioDecoderG722Stereo::Reset() {
std::vector<AudioDecoder::ParseResult> AudioDecoderG722Stereo::ParsePayload(
rtc::Buffer* payload,
- uint32_t timestamp,
- bool is_primary) {
+ uint32_t timestamp) {
return LegacyEncodedAudioFrame::SplitBySamples(this, payload, timestamp,
- is_primary, 2 * 8, 16);
+ 2 * 8, 16);
}
// Split the stereo packet and place left and right channel after each other

Powered by Google App Engine
This is Rietveld 408576698