Reported by Mark Harris
(cherry picked from speexdsp commit 7181b9e84fbf6887c74807af5ad0030a5181640a)