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

Unified Diff: webrtc/modules/audio_coding/codecs/opus/opus_interface.c

Issue 1179953003: Revert "Upconvert various types to int." (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 6 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/opus/opus_interface.c
diff --git a/webrtc/modules/audio_coding/codecs/opus/opus_interface.c b/webrtc/modules/audio_coding/codecs/opus/opus_interface.c
index e2506166a923a07b3599c5d3728f0ae40328facd..527de101320a03e76ec17cd45a70cd751a4de6be 100644
--- a/webrtc/modules/audio_coding/codecs/opus/opus_interface.c
+++ b/webrtc/modules/audio_coding/codecs/opus/opus_interface.c
@@ -78,11 +78,11 @@ int16_t WebRtcOpus_EncoderFree(OpusEncInst* inst) {
}
}
-int WebRtcOpus_Encode(OpusEncInst* inst,
- const int16_t* audio_in,
- int16_t samples,
- int16_t length_encoded_buffer,
- uint8_t* encoded) {
+int16_t WebRtcOpus_Encode(OpusEncInst* inst,
+ const int16_t* audio_in,
+ int16_t samples,
+ int16_t length_encoded_buffer,
+ uint8_t* encoded) {
int res;
if (samples > 48 * kWebRtcOpusMaxEncodeFrameSizeMs) {
@@ -291,9 +291,9 @@ static int DecodeNative(OpusDecInst* inst, const uint8_t* encoded,
return res;
}
-int WebRtcOpus_Decode(OpusDecInst* inst, const uint8_t* encoded,
- int16_t encoded_bytes, int16_t* decoded,
- int16_t* audio_type) {
+int16_t WebRtcOpus_Decode(OpusDecInst* inst, const uint8_t* encoded,
+ int16_t encoded_bytes, int16_t* decoded,
+ int16_t* audio_type) {
int decoded_samples;
if (encoded_bytes == 0) {
@@ -318,8 +318,8 @@ int WebRtcOpus_Decode(OpusDecInst* inst, const uint8_t* encoded,
return decoded_samples;
}
-int WebRtcOpus_DecodePlc(OpusDecInst* inst, int16_t* decoded,
- int number_of_lost_frames) {
+int16_t WebRtcOpus_DecodePlc(OpusDecInst* inst, int16_t* decoded,
+ int16_t number_of_lost_frames) {
int16_t audio_type = 0;
int decoded_samples;
int plc_samples;
@@ -339,9 +339,9 @@ int WebRtcOpus_DecodePlc(OpusDecInst* inst, int16_t* decoded,
return decoded_samples;
}
-int WebRtcOpus_DecodeFec(OpusDecInst* inst, const uint8_t* encoded,
- int16_t encoded_bytes, int16_t* decoded,
- int16_t* audio_type) {
+int16_t WebRtcOpus_DecodeFec(OpusDecInst* inst, const uint8_t* encoded,
+ int16_t encoded_bytes, int16_t* decoded,
+ int16_t* audio_type) {
int decoded_samples;
int fec_samples;
« no previous file with comments | « webrtc/modules/audio_coding/codecs/opus/opus_fec_test.cc ('k') | webrtc/modules/audio_coding/main/test/opus_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698