diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-07-18 08:48:28 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-07-18 08:48:28 +0200 |
commit | 4714fe46d8ee1bfd43fbe936d1d50402411e3446 (patch) | |
tree | 8f9066b67eeed33b734308daa44323162e61679f /src/AVTInput.cpp | |
parent | 95c66aa56274c76b7a1963debc9ebcddb7fcc9a8 (diff) | |
download | ODR-SourceCompanion-4714fe46d8ee1bfd43fbe936d1d50402411e3446.tar.gz ODR-SourceCompanion-4714fe46d8ee1bfd43fbe936d1d50402411e3446.tar.bz2 ODR-SourceCompanion-4714fe46d8ee1bfd43fbe936d1d50402411e3446.zip |
Fix bitrate check and a warning
Diffstat (limited to 'src/AVTInput.cpp')
-rw-r--r-- | src/AVTInput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AVTInput.cpp b/src/AVTInput.cpp index e8dbe16..ce65041 100644 --- a/src/AVTInput.cpp +++ b/src/AVTInput.cpp @@ -192,7 +192,7 @@ int AVTInput::setDabPlusParameters(int bitrate, int channels, int sample_rate, b _subChannelIndex = bitrate / 8; _bitRate = bitrate * 1000; _dab24msFrameSize = bitrate * 3; - if (_subChannelIndex * 8 != bitrate || _subChannelIndex < 1 | _subChannelIndex > 24) { + if (_subChannelIndex * 8 != bitrate || _subChannelIndex < 1 || _subChannelIndex > 24) { ERROR("Bad bitrate for DAB+ (8..192)"); return 1; } |