summaryrefslogtreecommitdiffstats
path: root/src/AVTInput.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-07-18 08:48:28 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-07-18 08:48:28 +0200
commit4714fe46d8ee1bfd43fbe936d1d50402411e3446 (patch)
tree8f9066b67eeed33b734308daa44323162e61679f /src/AVTInput.cpp
parent95c66aa56274c76b7a1963debc9ebcddb7fcc9a8 (diff)
downloadODR-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.cpp2
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;
}