From 3a29e0dcbb866ba57b19cf76fc80f3e3d804992a Mon Sep 17 00:00:00 2001 From: jstebbins <jstebbins.hb@gmail.com> Date: Sat, 9 Oct 2010 20:20:40 +0000 Subject: 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 --- test/test.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/test.c') 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); -- cgit v1.2.3