aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2017-02-17 12:02:11 +0100
committerStefan Pöschel <github@basicmaster.de>2017-02-17 12:02:11 +0100
commitcf26226714f73ce0d2b833bc579dbb00b9297d88 (patch)
tree8df82bbbf3a6c092feed02686136303942878f33 /src
parent6eb9a403558d4dfde1de36e5c6744b58dc26ea79 (diff)
downloaddabmod-cf26226714f73ce0d2b833bc579dbb00b9297d88.tar.gz
dabmod-cf26226714f73ce0d2b833bc579dbb00b9297d88.tar.bz2
dabmod-cf26226714f73ce0d2b833bc579dbb00b9297d88.zip
Fix SAD field width
The width of the SAD field is 10bit, therefore up to now subchannels with a higher start address were by mistake placed at a lower address within the MSC. Thereby also other subchannels could have been overwritten.
Diffstat (limited to 'src')
-rw-r--r--src/SubchannelSource.cpp2
-rw-r--r--src/SubchannelSource.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/SubchannelSource.cpp b/src/SubchannelSource.cpp
index a6b3bc4..2a8dc37 100644
--- a/src/SubchannelSource.cpp
+++ b/src/SubchannelSource.cpp
@@ -67,7 +67,7 @@ const std::vector<PuncturingRule>& SubchannelSource::get_rules() const
SubchannelSource::SubchannelSource(
- uint8_t sad,
+ uint16_t sad,
uint16_t stl,
uint8_t tpl
) :
diff --git a/src/SubchannelSource.h b/src/SubchannelSource.h
index 367bb5a..b4ca697 100644
--- a/src/SubchannelSource.h
+++ b/src/SubchannelSource.h
@@ -42,7 +42,7 @@ class SubchannelSource : public ModInput
{
public:
SubchannelSource(
- uint8_t sad,
+ uint16_t sad,
uint16_t stl,
uint8_t tpl
);