SDL: experimental rework of buffer size calculation. (nw)