From f2a0bbadef9f67ccf20a6af21acb4bda4afeb4f3 Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Sun, 23 Jul 2017 06:14:24 -0400 Subject: [PATCH] cli: Fix warning when audio sample rate is 0 or auto. --- test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.c b/test/test.c index cbfff7963..03121642a 100644 --- a/test/test.c +++ b/test/test.c @@ -4401,7 +4401,7 @@ PrepareJob(hb_handle_t *h, hb_title_t *title, hb_dict_t *preset_dict) { arate = hb_audio_samplerate_get_from_name(arates[ii]); } - if (arate <= 0) + if (arate < 0) { fprintf(stderr, "Invalid sample rate %s, using input rate\n", arates[ii]); -- 2.40.0