fixed the range of the array where the coefficients will be stored at ReedSolomonEncoder

This commit is contained in:
favoritas37 2016-10-04 21:07:39 +03:00
parent bd96c910e9
commit 505f60c264
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ void ReedSolomonEncoder::encode(std::vector<int> &toEncode, int ecBytes)
// coefficients.array_->values().begin(), // coefficients.array_->values().begin(),
// coefficients.array_->values().end()); // coefficients.array_->values().end());
for (size_t i = 0; i < coefficients.count(); i++) for (size_t i = 0; i < coefficients.count(); i++)
toEncode[i] = coefficients[i]; toEncode[dataBytes + numZeroCoefficients + i] = coefficients[i];
} }
} }