summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.c')
-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);