Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2016-09-15 22:02:00 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2016-09-15 22:02:00 +0300
commitf4dcc09f629ccf9694e1da3c605add01a95ae73e (patch)
tree6e7a08991d51b8e007db4549fa0373bc857edeb2 /tests
parent348bb27aa3337d6d9f923b5448234438b21cf97f (diff)
Fix mixed declarations and code
Diffstat (limited to 'tests')
-rw-r--r--tests/test_opus_encode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_opus_encode.c b/tests/test_opus_encode.c
index b8fc9d7f..32040e60 100644
--- a/tests/test_opus_encode.c
+++ b/tests/test_opus_encode.c
@@ -213,7 +213,6 @@ void fuzz_encoder_settings(const int num_encoders, const int num_setting_changes
for (j=0; j<num_setting_changes; j++) {
int bitrate = RAND_SAMPLE(bitrates);
int force_channel = RAND_SAMPLE(force_channels);
- force_channel = IMIN(force_channel, num_channels);
int vbr = RAND_SAMPLE(use_vbr);
int vbr_constraint = RAND_SAMPLE(vbr_constraints);
int complexity = RAND_SAMPLE(complexities);
@@ -227,6 +226,7 @@ void fuzz_encoder_settings(const int num_encoders, const int num_setting_changes
float frame_size_ms = RAND_SAMPLE(frame_sizes_ms);
int frame_size = (int)(frame_size_ms*sampling_rate/1000);
int frame_size_enum = get_frame_size_enum(frame_size, sampling_rate);
+ force_channel = IMIN(force_channel, num_channels);
sprintf(debug_info,
"fuzz_encoder_settings: %d kHz, %d ch, application: %d, "