aboutsummaryrefslogtreecommitdiffstats
path: root/src/ReedSolomon.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-17 17:43:55 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-20 21:39:37 +0200
commit01b2940c65549cab78fb39bfdb30d2825210b287 (patch)
tree93413d9749b1fabaedfe1daec5b6b17be6f0a250 /src/ReedSolomon.cpp
parent126ac41ec051df2439eb87a4730b5fe88b97020f (diff)
downloaddabmux-01b2940c65549cab78fb39bfdb30d2825210b287.tar.gz
dabmux-01b2940c65549cab78fb39bfdb30d2825210b287.tar.bz2
dabmux-01b2940c65549cab78fb39bfdb30d2825210b287.zip
fix suspicious magic constant in ReedSolomon.c
Diffstat (limited to 'src/ReedSolomon.cpp')
-rw-r--r--src/ReedSolomon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ReedSolomon.cpp b/src/ReedSolomon.cpp
index fc4c91e..0989e17 100644
--- a/src/ReedSolomon.cpp
+++ b/src/ReedSolomon.cpp
@@ -98,7 +98,7 @@ int ReedSolomon::encode(void* data, unsigned long size)
if (reverse) {
ret = decode_rs_char(rsData, input, NULL, 0);
} else {
- encode_rs_char(rsData, input, &input[188]);
+ encode_rs_char(rsData, input, &input[myK]);
}
return ret;