Increase size of the private temporary buffers from w to FFMAX(w, h), indeed they are used also for blurring vertical lines with length h.