dsp.c: Fix output length calculation.