diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-12-30 10:09:34 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-12-30 10:09:34 +0100 |
commit | 1db12b7f6ae74888703dfcaece93df1b8f40d30f (patch) | |
tree | f225adfb47d857bc57aafc61dfd257e4290489b0 /src | |
parent | dd1a879de0c806fc237017ab0b6fc48de64c17d3 (diff) | |
download | fdk-aac-dabplus-1db12b7f6ae74888703dfcaece93df1b8f40d30f.tar.gz fdk-aac-dabplus-1db12b7f6ae74888703dfcaece93df1b8f40d30f.tar.bz2 fdk-aac-dabplus-1db12b7f6ae74888703dfcaece93df1b8f40d30f.zip |
Allow mono wav files
Diffstat (limited to 'src')
-rw-r--r-- | src/FileInput.cpp | 2 |
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; } |