diff options
author | jbrjake <[email protected]> | 2008-05-15 20:23:03 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2008-05-15 20:23:03 +0000 |
commit | af12cf154dbc7171f21b4dca45468014d23108f0 (patch) | |
tree | 01262395a0d945f65802a96dcb34f635767b7c4d /test | |
parent | d60380e61ec922484e9c5614592884dbf351970d (diff) |
CLI: Sample rates given by the user in kHz need to be converted to Hz for libhb.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1460 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c index 1731edddf..6c08ecd9b 100644 --- a/test/test.c +++ b/test/test.c @@ -995,6 +995,17 @@ static int HandleEvents( hb_handle_t * h ) fprintf(stderr, "Invalid sample rate %d, using default\n", arate); arate = default_arate; } + + int j; + for( j = 0; j < hb_audio_rates_count; j++ ) + { + if( !strcmp( token, hb_audio_rates[j].string ) ) + { + arate = hb_audio_rates[j].rate; + break; + } + } + audio->out.samplerate = arate; } if( (++i) >= num_audio_tracks ) |