ffbuffer: use correct type (int)