summaryrefslogtreecommitdiffstats
path: root/src/FileInput.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-30 10:09:34 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-30 10:09:34 +0100
commit1db12b7f6ae74888703dfcaece93df1b8f40d30f (patch)
treef225adfb47d857bc57aafc61dfd257e4290489b0 /src/FileInput.cpp
parentdd1a879de0c806fc237017ab0b6fc48de64c17d3 (diff)
downloadODR-AudioEnc-1db12b7f6ae74888703dfcaece93df1b8f40d30f.tar.gz
ODR-AudioEnc-1db12b7f6ae74888703dfcaece93df1b8f40d30f.tar.bz2
ODR-AudioEnc-1db12b7f6ae74888703dfcaece93df1b8f40d30f.zip
Allow mono wav files
Diffstat (limited to 'src/FileInput.cpp')
-rw-r--r--src/FileInput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FileInput.cpp b/src/FileInput.cpp
index 2b05ec3..eae484f 100644
--- a/src/FileInput.cpp
+++ b/src/FileInput.cpp
@@ -61,7 +61,7 @@ int FileInput::prepare(void)
fprintf(stderr, "Unsupported WAV sample depth %d\n", bits_per_sample);
return 1;
}
- if (channels != 2) {
+ if ( !(channels == 1 or channels == 2)) {
fprintf(stderr, "Unsupported WAV channels %d\n", channels);
return 1;
}