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

Unified Diff: webrtc/modules/audio_coding/codecs/opus/opus_fec_test.cc

Issue 1179093003: Reland "Upconvert various types to int.", misc. codecs portion. (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_fec_test.cc
diff --git a/webrtc/modules/audio_coding/codecs/opus/opus_fec_test.cc b/webrtc/modules/audio_coding/codecs/opus/opus_fec_test.cc
index aaaced16d549c9a968b510bb238229fe86eee4d6..f0ef70a3ba46be4dec24fbef2641d1d9e12d5b21 100644
--- a/webrtc/modules/audio_coding/codecs/opus/opus_fec_test.cc
+++ b/webrtc/modules/audio_coding/codecs/opus/opus_fec_test.cc
@@ -131,10 +131,10 @@ OpusFecTest::OpusFecTest()
}
void OpusFecTest::EncodeABlock() {
- int16_t value = WebRtcOpus_Encode(opus_encoder_,
- &in_data_[data_pointer_],
- block_length_sample_,
- max_bytes_, &bit_stream_[0]);
+ int value = WebRtcOpus_Encode(opus_encoder_,
+ &in_data_[data_pointer_],
+ block_length_sample_,
+ max_bytes_, &bit_stream_[0]);
EXPECT_GT(value, 0);
encoded_bytes_ = value;
@@ -142,7 +142,7 @@ void OpusFecTest::EncodeABlock() {
void OpusFecTest::DecodeABlock(bool lost_previous, bool lost_current) {
int16_t audio_type;
- int16_t value_1 = 0, value_2 = 0;
+ int value_1 = 0, value_2 = 0;
if (lost_previous) {
// Decode previous frame.

Powered by Google App Engine
This is Rietveld 408576698