summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-10-09 20:20:40 +0000
committerjstebbins <[email protected]>2010-10-09 20:20:40 +0000
commit3a29e0dcbb866ba57b19cf76fc80f3e3d804992a (patch)
tree577951eb236c19b3b0107a2c79216bb05c076712 /test
parent566504c46cbb550ec3e9c4714ef9026b3d10beb2 (diff)
cli: fix misleading error messag
When samplerate is "auto" we were printing, "Invalid sample rate 0, using input rate 48000" git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3590 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r--test/test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c
index 019bdb0ee..14046cf1d 100644
--- a/test/test.c
+++ b/test/test.c
@@ -1600,6 +1600,10 @@ static int HandleEvents( hb_handle_t * h )
if( audio != NULL )
{
+ if ( !strcasecmp( token, "auto" ) )
+ {
+ arate = audio->in.samplerate;
+ }
if (!is_sample_rate_valid(arate))
{
fprintf(stderr, "Invalid sample rate %d, using input rate %d\n", arate, audio->in.samplerate);