Long story short: previous code was useless and was port of older dcaenc, this commit just "sync" with current dcaenc, hopefuly making this encoder more useful. Signed-off-by: Paul B Mahol <onemda@gmail.com>