Index: webrtc/modules/audio_processing/test/audioproc_float.cc |
diff --git a/webrtc/modules/audio_processing/test/audioproc_float.cc b/webrtc/modules/audio_processing/test/audioproc_float.cc |
index f22c41e2f84e79fc97a78a673d83e9af8987201e..268702e5dec6ac7ebfff26d9d9f466bff876b04a 100644 |
--- a/webrtc/modules/audio_processing/test/audioproc_float.cc |
+++ b/webrtc/modules/audio_processing/test/audioproc_float.cc |
@@ -168,12 +168,15 @@ int main(int argc, char* argv[]) { |
const StreamConfig output_config = { |
out_file.sample_rate(), out_buf.num_channels(), |
}; |
- const StreamConfig reverse_input_config = { |
- in_rev_file->sample_rate(), in_rev_file->num_channels(), |
- }; |
- const StreamConfig reverse_output_config = { |
- out_rev_file->sample_rate(), out_rev_file->num_channels(), |
- }; |
+ |
+ StreamConfig reverse_input_config = {}; |
+ StreamConfig reverse_output_config = {}; |
+ if (process_reverse) { |
+ StreamConfig reverse_input_config = {in_rev_file->sample_rate(), |
Andrew MacDonald
2015/08/21 17:31:33
This redeclaration is a bug of course; fixed here:
|
+ in_rev_file->num_channels()}; |
+ StreamConfig reverse_output_config = {out_rev_file->sample_rate(), |
+ out_rev_file->num_channels()}; |
+ } |
while (in_file.ReadSamples(in_interleaved.size(), |
&in_interleaved[0]) == in_interleaved.size()) { |
// Have logs display the file time rather than wallclock time. |