summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test.c b/test/test.c
index 423b56962..28c39fdaa 100644
--- a/test/test.c
+++ b/test/test.c
@@ -997,12 +997,6 @@ static int HandleEvents( hb_handle_t * h )
}
else
{
- if (!is_sample_rate_valid(arate))
- {
- fprintf(stderr, "Invalid sample rate %d, using default\n", arate);
- arate = default_arate;
- }
-
int j;
for( j = 0; j < hb_audio_rates_count; j++ )
{
@@ -1013,6 +1007,12 @@ static int HandleEvents( hb_handle_t * h )
}
}
+ if (!is_sample_rate_valid(arate))
+ {
+ fprintf(stderr, "Invalid sample rate %d, using default %d\n", arate, default_arate);
+ arate = default_arate;
+ }
+
audio->out.samplerate = arate;
}
if( (++i) >= num_audio_tracks )