summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-05-30 18:14:51 +0000
committerjbrjake <[email protected]>2008-05-30 18:14:51 +0000
commit5b0a6c2fa7509731584bbd0924b9c5301c218d52 (patch)
treeef71a7de29ecd46c59f04fa8e5efdc831f007a31 /test/test.c
parent005dfcbd7b7d02ea3ff05f05f2676b47db6545ea (diff)
CLI: Only sanity check the user-specified audio samplerate *after* it's been converted from kHz to Hz. This was just a cosmetic error.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1473 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-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 )