A little extra code I added to the modified libfec library by ka9q.