From 484d21111983f8366d97dff39ebd5846090fbfe9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 14 Feb 2020 16:55:37 +0100 Subject: [PATCH] spa-resample: quality 0 is a valid value. --- spa/plugins/audioconvert/spa-resample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/audioconvert/spa-resample.c b/spa/plugins/audioconvert/spa-resample.c index 0fcfaff4c..6b78b775c 100644 --- a/spa/plugins/audioconvert/spa-resample.c +++ b/spa/plugins/audioconvert/spa-resample.c @@ -252,7 +252,7 @@ int main(int argc, char *argv[]) break; case 'q': ret = atoi(optarg); - if (ret <= 0) { + if (ret < 0) { fprintf(stderr, "error: bad quality %s\n", optarg); goto error_usage; }