libspeexdec: fix detection of final terminator code