summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/odr-audioenc.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp
index 9f88a4b..f56c6df 100644
--- a/src/odr-audioenc.cpp
+++ b/src/odr-audioenc.cpp
@@ -623,10 +623,13 @@ int main(int argc, char *argv[])
settings.drift_compensation = true;
break;
case 'f':
- if(strcmp(optarg, "raw")==0) {
+ if (strcmp(optarg, "raw") == 0) {
settings.raw_input = 1;
- } else if(strcmp(optarg, "wav")!=0)
+ }
+ else if (strcmp(optarg, "wav") != 0) {
usage(argv[0]);
+ return 1;
+ }
break;
case 'i':
settings.infile = optarg;